aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-10-28 12:25:32 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-10-28 12:25:32 -0400
commit9b6ef630190f1218a011e6acafd684c8d5c8e95d (patch)
tree044874c85c36aa50d416dbec3fbf8a3c32f79271 /src
parentprofile work (diff)
downloadfirejail-9b6ef630190f1218a011e6acafd684c8d5c8e95d.tar.gz
firejail-9b6ef630190f1218a011e6acafd684c8d5c8e95d.tar.zst
firejail-9b6ef630190f1218a011e6acafd684c8d5c8e95d.zip
protocol testing
Diffstat (limited to 'src')
-rw-r--r--src/firejail/profile.c5
-rw-r--r--src/firejail/protocol.c2
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}
180printf("whitelist_len %u, struct sock_filter len %u\n", whitelist_len, (unsigned) sizeof(struct sock_filter));
180#endif 181#endif
181 182
182printf("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);