aboutsummaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
commit6ca409e0e4c198fe3081346eebbae3f068fe605a (patch)
tree060cb05d99220a1eda399194d1209c269f0e8cd8 /selinux
parent4185548984357df91311f30c8e43d95f33922576 (diff)
downloadbusybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
Diffstat (limited to 'selinux')
-rw-r--r--selinux/chcon.c2
-rw-r--r--selinux/runcon.c4
-rw-r--r--selinux/setfiles.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/selinux/chcon.c b/selinux/chcon.c
index 6e98c4ab9..a9552281d 100644
--- a/selinux/chcon.c
+++ b/selinux/chcon.c
@@ -105,7 +105,7 @@ skip:
105} 105}
106 106
107#if ENABLE_FEATURE_CHCON_LONG_OPTIONS 107#if ENABLE_FEATURE_CHCON_LONG_OPTIONS
108static const char chcon_longopts[] = 108static const char chcon_longopts[] ALIGN1 =
109 "recursive\0" No_argument "R" 109 "recursive\0" No_argument "R"
110 "changes\0" No_argument "c" 110 "changes\0" No_argument "c"
111 "no-dereference\0" No_argument "h" 111 "no-dereference\0" No_argument "h"
diff --git a/selinux/runcon.c b/selinux/runcon.c
index 5f9e3fd12..6c3f518fc 100644
--- a/selinux/runcon.c
+++ b/selinux/runcon.c
@@ -69,7 +69,7 @@ static context_t runcon_compute_new_context(char *user, char *role, char *type,
69} 69}
70 70
71#if ENABLE_FEATURE_RUNCON_LONG_OPTIONS 71#if ENABLE_FEATURE_RUNCON_LONG_OPTIONS
72static const char runcon_options[] = 72static const char runcon_longopts[] ALIGN1 =
73 "user\0" Required_argument "u" 73 "user\0" Required_argument "u"
74 "role\0" Required_argument "r" 74 "role\0" Required_argument "r"
75 "type\0" Required_argument "t" 75 "type\0" Required_argument "t"
@@ -101,7 +101,7 @@ int runcon_main(int argc, char **argv)
101 selinux_or_die(); 101 selinux_or_die();
102 102
103#if ENABLE_FEATURE_RUNCON_LONG_OPTIONS 103#if ENABLE_FEATURE_RUNCON_LONG_OPTIONS
104 applet_long_options = runcon_options; 104 applet_long_options = runcon_longopts;
105#endif 105#endif
106 opt_complementary = "-1"; 106 opt_complementary = "-1";
107 opts = getopt32(argc, argv, "r:t:u:l:ch", &role, &type, &user, &range); 107 opts = getopt32(argc, argv, "r:t:u:l:ch", &role, &type, &user, &range);
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index df77d6053..dcc8cbb5f 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -409,7 +409,7 @@ static int apply_spec(const char *file,
409 409
410static int canoncon(const char *path, unsigned lineno, char **contextp) 410static int canoncon(const char *path, unsigned lineno, char **contextp)
411{ 411{
412 static const char err_msg[] = "%s: line %u has invalid context %s"; 412 static const char err_msg[] ALIGN1 = "%s: line %u has invalid context %s";
413 413
414 char *tmpcon; 414 char *tmpcon;
415 char *context = *contextp; 415 char *context = *contextp;