summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar avoidr <avoidr@users.noreply.github.com>2015-11-29 19:47:35 +0100
committerLibravatar avoidr <avoidr@users.noreply.github.com>2015-11-29 19:47:40 +0100
commit2d2ca1fd3b27939bbb50a99efd95f00b6d398be7 (patch)
treea84223eaddad2f8824d8c5ed444543db0aeb28b9
parentllvm scan (diff)
downloadfirejail-2d2ca1fd3b27939bbb50a99efd95f00b6d398be7.tar.gz
firejail-2d2ca1fd3b27939bbb50a99efd95f00b6d398be7.tar.zst
firejail-2d2ca1fd3b27939bbb50a99efd95f00b6d398be7.zip
add 'hostname' command to profile
-rw-r--r--src/firejail/profile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c
index 6ac7cbe62..a8eedcaff 100644
--- a/src/firejail/profile.c
+++ b/src/firejail/profile.c
@@ -221,6 +221,12 @@ int profile_check_line(char *ptr, int lineno) {
221 exit(1); 221 exit(1);
222 return 0; 222 return 0;
223 } 223 }
224
225 // hostname
226 if (strncmp(ptr, "hostname ", 9) == 0) {
227 cfg.hostname = ptr + 9;
228 return 0;
229 }
224 230
225 // dns 231 // dns
226 if (strncmp(ptr, "dns ", 4) == 0) { 232 if (strncmp(ptr, "dns ", 4) == 0) {