Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/selinux/runcon.c

    r1765 r2725  
    2626 * Port to busybox: KaiGai Kohei <kaigai@kaigai.gr.jp>
    2727 *                  - based on coreutils-5.97 (in Fedora Core 6)
     28 *
     29 * Licensed under GPLv2, see file LICENSE in this source tree.
    2830 */
    2931#include <getopt.h>
     
    4042
    4143    if (getcon(&cur_context))
    42         bb_error_msg_and_die("cannot get current context");
     44        bb_error_msg_and_die("can't get current context");
    4345
    4446    if (compute_trans) {
     
    4648
    4749        if (getfilecon(command, &file_context) < 0)
    48             bb_error_msg_and_die("cannot retrieve attributes of '%s'",
     50            bb_error_msg_and_die("can't retrieve attributes of '%s'",
    4951                         command);
    5052        if (security_compute_create(cur_context, file_context,
     
    5860        bb_error_msg_and_die("'%s' is not a valid context", cur_context);
    5961    if (user && context_user_set(con, user))
    60         bb_error_msg_and_die("failed to set new user '%s'", user);
     62        bb_error_msg_and_die("can't set new user '%s'", user);
    6163    if (type && context_type_set(con, type))
    62         bb_error_msg_and_die("failed to set new type '%s'", type);
     64        bb_error_msg_and_die("can't set new type '%s'", type);
    6365    if (range && context_range_set(con, range))
    64         bb_error_msg_and_die("failed to set new range '%s'", range);
     66        bb_error_msg_and_die("can't set new range '%s'", range);
    6567    if (role && context_role_set(con, role))
    66         bb_error_msg_and_die("failed to set new role '%s'", role);
     68        bb_error_msg_and_die("can't set new role '%s'", role);
    6769
    6870    return con;
     
    8890#define OPTS_CONTEXT_COMPONENT      (OPTS_ROLE | OPTS_TYPE | OPTS_USER | OPTS_RANGE)
    8991
    90 int runcon_main(int argc, char **argv);
    91 int runcon_main(int argc, char **argv)
     92int runcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     93int runcon_main(int argc UNUSED_PARAM, char **argv)
    9294{
    9395    char *role = NULL;
     
    128130
    129131    if (setexeccon(context_str(con)))
    130         bb_error_msg_and_die("cannot set up security context '%s'",
     132        bb_error_msg_and_die("can't set up security context '%s'",
    131133                     context_str(con));
    132134
    133135    execvp(argv[0], argv);
    134 
    135     bb_perror_msg_and_die("cannot execute '%s'", argv[0]);
     136    bb_perror_msg_and_die("can't execute '%s'", argv[0]);
    136137}
Note: See TracChangeset for help on using the changeset viewer.