Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/selinux


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (9 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/selinux/Config.src

    r2725 r3621  
    6565    depends on SELINUX
    6666    help
    67       Enable support to run command in speficied security context.
     67      Enable support to run command in specified security context.
    6868
    6969config FEATURE_RUNCON_LONG_OPTIONS
  • branches/3.3/mindi-busybox/selinux/setfiles.c

    r3232 r3621  
    1818//usage:     "\n    -d  Show which specification matched each file"
    1919//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
    2021//usage:     "\n    -n  Don't change any file labels"
    2122//usage:     "\n    -q  Suppress warnings"
     
    7778    struct edir excludeArray[MAX_EXCLUDES];
    7879} FIX_ALIASING;
    79 #define G (*(struct globals*)&bb_common_bufsiz1)
     80#define G (*(struct globals*)bb_common_bufsiz1)
    8081void BUG_setfiles_globals_too_big(void);
    8182#define INIT_G() do { \
     83    setup_common_bufsiz(); \
    8284    if (sizeof(G) > COMMON_BUFSIZE) \
    8385        BUG_setfiles_globals_too_big(); \
     
    252254            if (excludeCtr > 0 && exclude(name))
    253255                goto err;
    254 
    255256        } else {
    256257            char *p;
     
    385386         * same.  For "-vv", emit everything. */
    386387        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",
    388389                applet_name, my_file, context ? context : "", newcon);
    389390        }
     
    392393    if (FLAG_l_take_log && !user_only_changed) {
    393394        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);
    395396        else
    396             bb_info_msg("labeling %s to %s", my_file, newcon);
     397            printf("labeling %s to %s\n", my_file, newcon);
    397398    }
    398399
Note: See TracChangeset for help on using the changeset viewer.