Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/selinux
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (9 years ago)
- Location:
- branches/3.3
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/selinux/Config.src
r2725 r3621 65 65 depends on SELINUX 66 66 help 67 Enable support to run command in spe ficied security context.67 Enable support to run command in specified security context. 68 68 69 69 config FEATURE_RUNCON_LONG_OPTIONS -
branches/3.3/mindi-busybox/selinux/setfiles.c
r3232 r3621 18 18 //usage: "\n -d Show which specification matched each file" 19 19 //usage: "\n -l Log changes in file labels to syslog" 20 //TODO: log to syslog is not yet implemented, it goes to stdout only now 20 21 //usage: "\n -n Don't change any file labels" 21 22 //usage: "\n -q Suppress warnings" … … 77 78 struct edir excludeArray[MAX_EXCLUDES]; 78 79 } FIX_ALIASING; 79 #define G (*(struct globals*) &bb_common_bufsiz1)80 #define G (*(struct globals*)bb_common_bufsiz1) 80 81 void BUG_setfiles_globals_too_big(void); 81 82 #define INIT_G() do { \ 83 setup_common_bufsiz(); \ 82 84 if (sizeof(G) > COMMON_BUFSIZE) \ 83 85 BUG_setfiles_globals_too_big(); \ … … 252 254 if (excludeCtr > 0 && exclude(name)) 253 255 goto err; 254 255 256 } else { 256 257 char *p; … … 385 386 * same. For "-vv", emit everything. */ 386 387 if (verbose > 1 || !user_only_changed) { 387 bb_info_msg("%s: reset %s context %s->%s",388 printf("%s: reset %s context %s->%s\n", 388 389 applet_name, my_file, context ? context : "", newcon); 389 390 } … … 392 393 if (FLAG_l_take_log && !user_only_changed) { 393 394 if (context) 394 bb_info_msg("relabeling %s from %s to %s", my_file, context, newcon);395 printf("relabeling %s from %s to %s\n", my_file, context, newcon); 395 396 else 396 bb_info_msg("labeling %s to %s", my_file, newcon);397 printf("labeling %s to %s\n", my_file, newcon); 397 398 } 398 399
Note:
See TracChangeset
for help on using the changeset viewer.