aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r--src/firejail/profile.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index d0c43d13e..77308b7ac 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -920,6 +920,10 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
920#ifdef HAVE_OVERLAYFS 920#ifdef HAVE_OVERLAYFS
921 if (strncmp(ptr, "overlay-named ", 14) == 0) { 921 if (strncmp(ptr, "overlay-named ", 14) == 0) {
922 if (checkcfg(CFG_OVERLAYFS)) { 922 if (checkcfg(CFG_OVERLAYFS)) {
923 if (arg_overlay) {
924 fprintf(stderr, "Error: only one overlay command is allowed\n");
925 exit(1);
926 }
923 if (cfg.chrootdir) { 927 if (cfg.chrootdir) {
924 fprintf(stderr, "Error: --overlay and --chroot options are mutually exclusive\n"); 928 fprintf(stderr, "Error: --overlay and --chroot options are mutually exclusive\n");
925 exit(1); 929 exit(1);
@@ -951,6 +955,10 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
951 return 0; 955 return 0;
952 } else if (strcmp(ptr, "overlay-tmpfs") == 0) { 956 } else if (strcmp(ptr, "overlay-tmpfs") == 0) {
953 if (checkcfg(CFG_OVERLAYFS)) { 957 if (checkcfg(CFG_OVERLAYFS)) {
958 if (arg_overlay) {
959 fprintf(stderr, "Error: only one overlay command is allowed\n");
960 exit(1);
961 }
954 if (cfg.chrootdir) { 962 if (cfg.chrootdir) {
955 fprintf(stderr, "Error: --overlay and --chroot options are mutually exclusive\n"); 963 fprintf(stderr, "Error: --overlay and --chroot options are mutually exclusive\n");
956 exit(1); 964 exit(1);
@@ -966,6 +974,10 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
966 } 974 }
967 } else if (strcmp(ptr, "overlay") == 0) { 975 } else if (strcmp(ptr, "overlay") == 0) {
968 if (checkcfg(CFG_OVERLAYFS)) { 976 if (checkcfg(CFG_OVERLAYFS)) {
977 if (arg_overlay) {
978 fprintf(stderr, "Error: only one overlay command is allowed\n");
979 exit(1);
980 }
969 if (cfg.chrootdir) { 981 if (cfg.chrootdir) {
970 fprintf(stderr, "Error: --overlay and --chroot options are mutually exclusive\n"); 982 fprintf(stderr, "Error: --overlay and --chroot options are mutually exclusive\n");
971 exit(1); 983 exit(1);