From 2d2ca1fd3b27939bbb50a99efd95f00b6d398be7 Mon Sep 17 00:00:00 2001 From: avoidr Date: Sun, 29 Nov 2015 19:47:35 +0100 Subject: add 'hostname' command to profile --- src/firejail/profile.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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) { exit(1); return 0; } + + // hostname + if (strncmp(ptr, "hostname ", 9) == 0) { + cfg.hostname = ptr + 9; + return 0; + } // dns if (strncmp(ptr, "dns ", 4) == 0) { -- cgit v1.2.3-54-g00ecf