diff options
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r-- | src/firejail/profile.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 4b2fb3abd..c3ef2f2f5 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -198,6 +198,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
198 | arg_private = 1; | 198 | arg_private = 1; |
199 | return 0; | 199 | return 0; |
200 | } | 200 | } |
201 | #ifndef LTS | ||
201 | if (strncmp(ptr, "private-home ", 13) == 0) { | 202 | if (strncmp(ptr, "private-home ", 13) == 0) { |
202 | #ifdef HAVE_PRIVATE_HOME | 203 | #ifdef HAVE_PRIVATE_HOME |
203 | if (checkcfg(CFG_PRIVATE_HOME)) { | 204 | if (checkcfg(CFG_PRIVATE_HOME)) { |
@@ -213,6 +214,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
213 | #endif | 214 | #endif |
214 | return 0; | 215 | return 0; |
215 | } | 216 | } |
217 | #endif //LTS | ||
216 | else if (strcmp(ptr, "allusers") == 0) { | 218 | else if (strcmp(ptr, "allusers") == 0) { |
217 | arg_allusers = 1; | 219 | arg_allusers = 1; |
218 | return 0; | 220 | return 0; |
@@ -790,6 +792,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
790 | return 0; | 792 | return 0; |
791 | } | 793 | } |
792 | 794 | ||
795 | #ifndef LTS | ||
793 | if (strcmp(ptr, "x11 xephyr") == 0) { | 796 | if (strcmp(ptr, "x11 xephyr") == 0) { |
794 | #ifdef HAVE_X11 | 797 | #ifdef HAVE_X11 |
795 | if (checkcfg(CFG_X11)) { | 798 | if (checkcfg(CFG_X11)) { |
@@ -875,7 +878,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
875 | #endif | 878 | #endif |
876 | return 0; | 879 | return 0; |
877 | } | 880 | } |
878 | 881 | #endif //LTS | |
879 | // private /etc list of files and directories | 882 | // private /etc list of files and directories |
880 | if (strncmp(ptr, "private-etc ", 12) == 0) { | 883 | if (strncmp(ptr, "private-etc ", 12) == 0) { |
881 | if (arg_writable_etc) { | 884 | if (arg_writable_etc) { |
@@ -949,7 +952,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
949 | return 0; | 952 | return 0; |
950 | } | 953 | } |
951 | 954 | ||
952 | 955 | #ifndef LTS | |
953 | #ifdef HAVE_OVERLAYFS | 956 | #ifdef HAVE_OVERLAYFS |
954 | if (strncmp(ptr, "overlay-named ", 14) == 0) { | 957 | if (strncmp(ptr, "overlay-named ", 14) == 0) { |
955 | if (checkcfg(CFG_OVERLAYFS)) { | 958 | if (checkcfg(CFG_OVERLAYFS)) { |
@@ -1034,6 +1037,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
1034 | } | 1037 | } |
1035 | } | 1038 | } |
1036 | #endif | 1039 | #endif |
1040 | #endif // LTS | ||
1037 | 1041 | ||
1038 | // filesystem bind | 1042 | // filesystem bind |
1039 | if (strncmp(ptr, "bind ", 5) == 0) { | 1043 | if (strncmp(ptr, "bind ", 5) == 0) { |