From ba231088e6bd8e4c52e372f7a4d2928ee7bf223a Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 22 Oct 2017 11:09:50 -0400 Subject: --build: save the resulting profile in a file --- src/fbuilder/build_home.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fbuilder/build_home.c') diff --git a/src/fbuilder/build_home.c b/src/fbuilder/build_home.c index 947f172d8..9bbd2c258 100644 --- a/src/fbuilder/build_home.c +++ b/src/fbuilder/build_home.c @@ -158,7 +158,7 @@ void process_home(const char *fname, char *home, int home_len) { // process fname, fname.1, fname.2, fname.3, fname.4, fname.5 -void build_home(const char *fname) { +void build_home(const char *fname, FILE *fp) { assert(fname); // load whitelist common @@ -190,10 +190,10 @@ void build_home(const char *fname) { // print the out list if any if (db_out) { - filedb_print(db_out, "whitelist ~/"); - printf("include /etc/firejail/whitelist-common.inc\n"); + filedb_print(db_out, "whitelist ~/", fp); + fprintf(fp, "include /etc/firejail/whitelist-common.inc\n"); } else - printf("private\n"); + fprintf(fp, "private\n"); } \ No newline at end of file -- cgit v1.2.3-54-g00ecf