diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/profile.c | 5 | ||||
-rw-r--r-- | src/firejail/protocol.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 1fadab1fa..05a8ece35 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -151,6 +151,11 @@ int profile_check_line(char *ptr, int lineno) { | |||
151 | return 0; | 151 | return 0; |
152 | } | 152 | } |
153 | 153 | ||
154 | if (strncmp(ptr, "protocol ", 9) == 0) { | ||
155 | protocol_store(ptr + 9); | ||
156 | return 0; | ||
157 | } | ||
158 | |||
154 | if (strncmp(ptr, "env ", 4) == 0) { | 159 | if (strncmp(ptr, "env ", 4) == 0) { |
155 | env_store(ptr + 4); | 160 | env_store(ptr + 4); |
156 | return 0; | 161 | return 0; |
diff --git a/src/firejail/protocol.c b/src/firejail/protocol.c index 8e75277c2..ba784fc2e 100644 --- a/src/firejail/protocol.c +++ b/src/firejail/protocol.c | |||
@@ -177,9 +177,9 @@ printf("entries %u\n", (unsigned) (sizeof(filter_start) / sizeof(struct sock_fil | |||
177 | } | 177 | } |
178 | printf("\n"); | 178 | printf("\n"); |
179 | } | 179 | } |
180 | printf("whitelist_len %u, struct sock_filter len %u\n", whitelist_len, (unsigned) sizeof(struct sock_filter)); | ||
180 | #endif | 181 | #endif |
181 | 182 | ||
182 | printf("whitelist_len %u, struct sock_filter len %u\n", whitelist_len, (unsigned) sizeof(struct sock_filter)); | ||
183 | 183 | ||
184 | // parse list and add commands | 184 | // parse list and add commands |
185 | char *tmplist = strdup(cfg.protocol); | 185 | char *tmplist = strdup(cfg.protocol); |