aboutsummaryrefslogtreecommitdiff
path: root/selinux/setfiles.c
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2016-03-30 18:17:35 +0200
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2016-03-30 18:17:35 +0200
commit80f0f1d712fb3ab236e1fc8b37dfa7a9224d7849 (patch)
treed9275d6616444118bda6715c63f1f2ae87445797 /selinux/setfiles.c
parent2a17fbe88a0cc064248db4ce8939f0fbc357922d (diff)
downloadbusybox-80f0f1d712fb3ab236e1fc8b37dfa7a9224d7849.tar.gz
busybox-80f0f1d712fb3ab236e1fc8b37dfa7a9224d7849.tar.bz2
setfiles: switch bb_info_msg to printf
Presumably, bb_info_msg was used here for syslog logging (-l), but there is no actual code to activate syslog logging. Added a TODO note on that, so that selinux users would notice and fix if needed. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'selinux/setfiles.c')
-rw-r--r--selinux/setfiles.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index c974c4a9d..de99dfe44 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -17,6 +17,7 @@
//usage: )
//usage: "\n -d Show which specification matched each file"
//usage: "\n -l Log changes in file labels to syslog"
+//TODO: log to syslog is not yet implemented, it goes to stdout only now
//usage: "\n -n Don't change any file labels"
//usage: "\n -q Suppress warnings"
//usage: "\n -r DIR Use an alternate root path"
@@ -383,16 +384,16 @@ static int restore(const char *file)
* the user has changed but the role and type are the
* same. For "-vv", emit everything. */
if (verbose > 1 || !user_only_changed) {
- bb_info_msg("%s: reset %s context %s->%s",
+ printf("%s: reset %s context %s->%s\n",
applet_name, my_file, context ? context : "", newcon);
}
}
if (FLAG_l_take_log && !user_only_changed) {
if (context)
- bb_info_msg("relabeling %s from %s to %s", my_file, context, newcon);
+ printf("relabeling %s from %s to %s\n", my_file, context, newcon);
else
- bb_info_msg("labeling %s to %s", my_file, newcon);
+ printf("labeling %s to %s\n", my_file, newcon);
}
if (outfile && !user_only_changed)