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.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index 4e6ebdbca..acf206da6 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -966,6 +966,22 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
966 return 0; 966 return 0;
967 } 967 }
968 968
969 if (strcmp(ptr, "apparmor-replace") == 0) {
970#ifdef HAVE_APPARMOR
971 arg_apparmor = 1;
972 apparmor_replace = true;
973#endif
974 return 0;
975 }
976
977 if (strcmp(ptr, "apparmor-stack") == 0) {
978#ifdef HAVE_APPARMOR
979 arg_apparmor = 1;
980 apparmor_replace = false;
981#endif
982 return 0;
983 }
984
969 if (strncmp(ptr, "protocol ", 9) == 0) { 985 if (strncmp(ptr, "protocol ", 9) == 0) {
970 if (checkcfg(CFG_SECCOMP)) { 986 if (checkcfg(CFG_SECCOMP)) {
971 const char *add = ptr + 9; 987 const char *add = ptr + 9;