]>
Commit | Line | Data |
---|---|---|
c2be74f0 JB |
1 | diff -Nur coreutils-6.4/README coreutils-6.4.selinux/README |
2 | --- coreutils-6.4/README 2006-10-22 16:54:15.000000000 +0000 | |
3 | +++ coreutils-6.4.selinux/README 2006-10-31 23:39:34.000000000 +0000 | |
4 | @@ -7,11 +7,11 @@ | |
5 | ||
6 | The programs that can be built with this package are: | |
7 | ||
8 | - [ base64 basename cat chgrp chmod chown chroot cksum comm cp csplit cut date | |
9 | + [ base64 basename cat chcon chgrp chmod chown chroot cksum comm cp csplit cut date | |
10 | dd df dir dircolors dirname du echo env expand expr factor false fmt fold | |
11 | ginstall groups head hostid hostname id join kill link ln logname ls | |
12 | md5sum mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr | |
dc55de80 JR |
13 | - printenv printf ptx pwd readlink rm rmdir runuser seq sha1sum sha224sum sha256sum |
14 | + printenv printf ptx pwd readlink rm rmdir runuser runcon seq sha1sum sha224sum sha256sum | |
c2be74f0 JB |
15 | sha384sum sha512sum shred shuf sleep sort split stat stty su sum sync tac |
16 | tail tee test touch tr true tsort tty uname unexpand uniq unlink uptime | |
17 | users vdir wc who whoami yes | |
18 | diff -Nur coreutils-6.4/configure.ac coreutils-6.4.selinux/configure.ac | |
19 | --- coreutils-6.4/configure.ac 2006-10-31 23:38:15.000000000 +0000 | |
20 | +++ coreutils-6.4.selinux/configure.ac 2006-10-31 23:39:34.000000000 +0000 | |
21 | @@ -264,6 +264,13 @@ | |
22 | LIB_CRYPT= | |
23 | fi | |
0107077f | 24 | |
8f3b5a73 | 25 | +dnl Give the chance to enable SELINUX |
0107077f | 26 | +AC_ARG_ENABLE(selinux, dnl |
8f3b5a73 JB |
27 | +[ --enable-selinux Enable use of the SELinux libraries], |
28 | +[AC_DEFINE(WITH_SELINUX, 1, [Define if you want to use SELinux]) | |
0107077f AM |
29 | +LIB_SELINUX="-lselinux" |
30 | +AC_SUBST(LIB_SELINUX)]) | |
31 | + | |
c2be74f0 JB |
32 | AC_CONFIG_FILES( |
33 | Makefile | |
34 | doc/Makefile | |
35 | diff -Nur coreutils-6.4/lib/config.hin coreutils-6.4.selinux/lib/config.hin | |
36 | --- coreutils-6.4/lib/config.hin 2006-10-22 20:36:23.000000000 +0000 | |
37 | +++ coreutils-6.4.selinux/lib/config.hin 2006-10-31 23:39:34.000000000 +0000 | |
38 | @@ -1645,6 +1645,9 @@ | |
39 | 'wint_t'. */ | |
40 | #undef WINT_T_SUFFIX | |
41 | ||
42 | +/* Define if you want to use SELINUX */ | |
43 | +#undef WITH_SELINUX | |
44 | + | |
45 | /* Define to 1 if your processor stores words with the most significant byte | |
46 | first (like Motorola and SPARC, unlike Intel and VAX). */ | |
47 | #undef WORDS_BIGENDIAN | |
48 | --- coreutils-6.5/man/Makefile.am.orig 2006-11-22 10:47:32.569505000 +0100 | |
49 | +++ coreutils-6.5/man/Makefile.am 2006-11-22 10:48:11.669505000 +0100 | |
50 | @@ -30,7 +30,7 @@ | |
51 | shred.1 shuf.1 sleep.1 sort.1 split.1 stat.1 \ | |
52 | su.1 sum.1 sync.1 tac.1 tail.1 tee.1 test.1 touch.1 tr.1 true.1 tsort.1 \ | |
53 | tty.1 unexpand.1 uniq.1 unlink.1 vdir.1 wc.1 \ | |
54 | - whoami.1 yes.1 $(MAN) | |
55 | + whoami.1 yes.1 chcon.1 runcon.1 $(MAN) | |
56 | optional_mans = \ | |
57 | chroot.1 hostid.1 nice.1 pinky.1 stty.1 uname.1 uptime.1 users.1 who.1 | |
58 | man_MANS = getgid.1 | |
59 | @@ -142,6 +142,8 @@ | |
60 | who.1: $(common_dep) $(srcdir)/who.x ../src/who.c | |
61 | whoami.1: $(common_dep) $(srcdir)/whoami.x ../src/whoami.c | |
62 | yes.1: $(common_dep) $(srcdir)/yes.x ../src/yes.c | |
63 | +chcon.1: $(common_dep) $(srcdir)/chcon.x ../src/chcon.c | |
64 | +runcon.1: $(common_dep) $(srcdir)/runcon.x ../src/runcon.c | |
65 | ||
66 | SUFFIXES = .x .1 | |
67 | ||
68 | diff -Nur coreutils-6.4/man/chcon.1 coreutils-6.4.selinux/man/chcon.1 | |
69 | --- coreutils-6.4/man/chcon.1 1970-01-01 00:00:00.000000000 +0000 | |
70 | +++ coreutils-6.4.selinux/man/chcon.1 2006-10-31 23:39:34.000000000 +0000 | |
71 | @@ -0,0 +1,64 @@ | |
72 | +.TH CHCON 1 "July 2003" "chcon (coreutils) 5.0" "User Commands" | |
73 | +.SH NAME | |
74 | +chcon \- change security context | |
75 | +.SH SYNOPSIS | |
76 | +.B chcon | |
77 | +[\fIOPTION\fR]...\fI CONTEXT FILE\fR... | |
78 | +.br | |
79 | +.B chcon | |
80 | +[\fIOPTION\fR]...\fI --reference=RFILE FILE\fR... | |
81 | +.SH DESCRIPTION | |
0107077f | 82 | +.PP |
c2be74f0 JB |
83 | +." Add any additional description here |
84 | +.PP | |
85 | +Change the security context of each FILE to CONTEXT. | |
0107077f | 86 | +.TP |
c2be74f0 JB |
87 | +\fB\-c\fR, \fB\-\-changes\fR |
88 | +like verbose but report only when a change is made | |
0107077f | 89 | +.TP |
c2be74f0 JB |
90 | +\fB\-h\fR, \fB\-\-no\-dereference\fR |
91 | +affect symbolic links instead of any referenced file (available only on systems with lchown system call) | |
0107077f | 92 | +.TP |
c2be74f0 JB |
93 | +\fB\-f\fR, \fB\-\-silent\fR, \fB\-\-quiet\fR |
94 | +suppress most error messages | |
95 | +.TP | |
96 | +\fB\-l\fR, \fB\-\-range\fR | |
97 | +set range RANGE in the target security context | |
98 | +.TP | |
99 | +\fB\-\-reference\fR=\fIRFILE\fR | |
100 | +use RFILE's context instead of using a CONTEXT value | |
101 | +.TP | |
102 | +\fB\-R\fR, \fB\-\-recursive\fR | |
103 | +change files and directories recursively | |
104 | +.TP | |
105 | +\fB\-r\fR, \fB\-\-role\fR | |
106 | +set role ROLE in the target security context | |
107 | +.TP | |
108 | +\fB\-t\fR, \fB\-\-type\fR | |
109 | +set type TYPE in the target security context | |
110 | +.TP | |
111 | +\fB\-u\fR, \fB\-\-user\fR | |
112 | +set user USER in the target security context | |
113 | +.TP | |
114 | +\fB\-v\fR, \fB\-\-verbose\fR | |
115 | +output a diagnostic for every file processed | |
116 | +.TP | |
117 | +\fB\-\-help\fR | |
118 | +display this help and exit | |
119 | +.TP | |
120 | +\fB\-\-version\fR | |
121 | +output version information and exit | |
122 | +.SH "REPORTING BUGS" | |
123 | +Report bugs to <email@host.com>. | |
124 | +.SH "SEE ALSO" | |
125 | +The full documentation for | |
126 | +.B chcon | |
127 | +is maintained as a Texinfo manual. If the | |
128 | +.B info | |
129 | +and | |
130 | +.B chcon | |
131 | +programs are properly installed at your site, the command | |
132 | +.IP | |
133 | +.B info chcon | |
134 | +.PP | |
135 | +should give you access to the complete manual. | |
136 | diff -Nur coreutils-6.4/man/chcon.x coreutils-6.4.selinux/man/chcon.x | |
137 | --- coreutils-6.4/man/chcon.x 1970-01-01 00:00:00.000000000 +0000 | |
138 | +++ coreutils-6.4.selinux/man/chcon.x 2006-10-31 23:39:34.000000000 +0000 | |
139 | @@ -0,0 +1,4 @@ | |
140 | +[NAME] | |
141 | +chcon \- change file security context | |
142 | +[DESCRIPTION] | |
143 | +.\" Add any additional description here | |
144 | diff -Nur coreutils-6.4/man/cp.1 coreutils-6.4.selinux/man/cp.1 | |
145 | --- coreutils-6.4/man/cp.1 2006-10-22 19:56:33.000000000 +0000 | |
146 | +++ coreutils-6.4.selinux/man/cp.1 2006-10-31 23:39:34.000000000 +0000 | |
8f3b5a73 | 147 | @@ -57,7 +57,7 @@ |
0107077f | 148 | .TP |
8f3b5a73 JB |
149 | \fB\-\-preserve\fR[=\fIATTR_LIST\fR] |
150 | preserve the specified attributes (default: | |
151 | -mode,ownership,timestamps), if possible | |
152 | +mode,ownership,timestamps) and security contexts, if possible | |
153 | additional attributes: links, all | |
154 | .TP | |
155 | \fB\-\-no\-preserve\fR=\fIATTR_LIST\fR | |
c2be74f0 | 156 | @@ -106,6 +106,9 @@ |
8f3b5a73 JB |
157 | \fB\-\-help\fR |
158 | display this help and exit | |
0107077f | 159 | .TP |
8f3b5a73 JB |
160 | +\fB\-Z\fR, \fB\-\-context\fR=\fICONTEXT\fR |
161 | +set security context of copy to CONTEXT | |
162 | +.TP | |
163 | \fB\-\-version\fR | |
164 | output version information and exit | |
165 | .PP | |
c2be74f0 JB |
166 | diff -Nur coreutils-6.4/man/dir.1 coreutils-6.4.selinux/man/dir.1 |
167 | --- coreutils-6.4/man/dir.1 2006-10-22 19:56:34.000000000 +0000 | |
168 | +++ coreutils-6.4.selinux/man/dir.1 2006-10-31 23:39:34.000000000 +0000 | |
169 | @@ -204,6 +204,20 @@ | |
0107077f | 170 | .TP |
c2be74f0 JB |
171 | \fB\-1\fR |
172 | list one file per line | |
173 | +.PP | |
174 | +SELinux options: | |
0107077f | 175 | +.TP |
c2be74f0 JB |
176 | +\fB\-\-lcontext\fR |
177 | +Display security context. Enable \fB\-l\fR. Lines | |
178 | +will probably be too wide for most displays. | |
179 | +.TP | |
180 | +\fB\-\-context\fR | |
181 | +Display security context so it fits on most | |
182 | +displays. Displays only mode, user, group, | |
183 | +security context and file name. | |
184 | +.TP | |
185 | +\fB\-\-scontext\fR | |
186 | +Display only security context and file name. | |
187 | .TP | |
188 | \fB\-\-help\fR | |
189 | display this help and exit | |
190 | diff -Nur coreutils-6.4/man/id.1 coreutils-6.4.selinux/man/id.1 | |
191 | --- coreutils-6.4/man/id.1 2006-10-22 19:56:35.000000000 +0000 | |
192 | +++ coreutils-6.4.selinux/man/id.1 2006-10-31 23:39:34.000000000 +0000 | |
193 | @@ -13,6 +13,9 @@ | |
194 | \fB\-a\fR | |
195 | ignore, for compatibility with other versions | |
196 | .TP | |
197 | +\fB\-Z\fR, \fB\-\-context\fR | |
198 | +print only the security context | |
199 | +.TP | |
200 | \fB\-g\fR, \fB\-\-group\fR | |
201 | print only the effective group ID | |
202 | .TP | |
203 | diff -Nur coreutils-6.4/man/install.1 coreutils-6.4.selinux/man/install.1 | |
204 | --- coreutils-6.4/man/install.1 2006-10-22 19:56:35.000000000 +0000 | |
205 | +++ coreutils-6.4.selinux/man/install.1 2006-10-31 23:39:34.000000000 +0000 | |
206 | @@ -66,6 +66,11 @@ | |
207 | .TP | |
208 | \fB\-v\fR, \fB\-\-verbose\fR | |
209 | print the name of each directory as it is created | |
210 | +.HP | |
211 | +\fB\-P\fR, \fB\-\-preserve_context\fR (SELinux) Preserve security context | |
212 | +.TP | |
213 | +\fB\-Z\fR, \fB\-\-context\fR=\fICONTEXT\fR | |
214 | +(SELinux) Set security context of files and directories | |
0107077f | 215 | .TP |
c2be74f0 JB |
216 | \fB\-\-help\fR |
217 | display this help and exit | |
218 | diff -Nur coreutils-6.4/man/ls.1 coreutils-6.4.selinux/man/ls.1 | |
219 | --- coreutils-6.4/man/ls.1 2006-10-22 19:56:35.000000000 +0000 | |
220 | +++ coreutils-6.4.selinux/man/ls.1 2006-10-31 23:39:34.000000000 +0000 | |
221 | @@ -204,6 +204,20 @@ | |
0107077f AM |
222 | .TP |
223 | \fB\-1\fR | |
224 | list one file per line | |
225 | +.PP | |
226 | +SELinux options: | |
227 | +.TP | |
228 | +\fB\-\-lcontext\fR | |
229 | +Display security context. Enable \fB\-l\fR. Lines | |
230 | +will probably be too wide for most displays. | |
231 | +.TP | |
232 | +\fB\-Z\fR, \fB\-\-context\fR | |
233 | +Display security context so it fits on most | |
234 | +displays. Displays only mode, user, group, | |
235 | +security context and file name. | |
236 | +.TP | |
237 | +\fB\-\-scontext\fR | |
238 | +Display only security context and file name. | |
239 | .TP | |
240 | \fB\-\-help\fR | |
241 | display this help and exit | |
c2be74f0 JB |
242 | diff -Nur coreutils-6.4/man/mkdir.1 coreutils-6.4.selinux/man/mkdir.1 |
243 | --- coreutils-6.4/man/mkdir.1 2006-10-22 19:56:35.000000000 +0000 | |
244 | +++ coreutils-6.4.selinux/man/mkdir.1 2006-10-31 23:39:34.000000000 +0000 | |
245 | @@ -12,6 +12,8 @@ | |
246 | .PP | |
247 | Mandatory arguments to long options are mandatory for short options too. | |
248 | .TP | |
249 | +\fB\-Z\fR, \fB\-\-context\fR=\fICONTEXT\fR (SELinux) set security context to CONTEXT | |
250 | +.TP | |
251 | \fB\-m\fR, \fB\-\-mode\fR=\fIMODE\fR | |
252 | set file mode (as in chmod), not a=rwx \- umask | |
253 | .TP | |
254 | diff -Nur coreutils-6.4/man/mkfifo.1 coreutils-6.4.selinux/man/mkfifo.1 | |
255 | --- coreutils-6.4/man/mkfifo.1 2006-10-22 19:56:35.000000000 +0000 | |
256 | +++ coreutils-6.4.selinux/man/mkfifo.1 2006-10-31 23:39:34.000000000 +0000 | |
8f3b5a73 JB |
257 | @@ -12,6 +12,9 @@ |
258 | .PP | |
259 | Mandatory arguments to long options are mandatory for short options too. | |
260 | .TP | |
261 | +\fB\-Z\fR, \fB\-\-context\fR=\fICONTEXT\fR | |
262 | +set security context (quoted string) | |
263 | +.TP | |
264 | \fB\-m\fR, \fB\-\-mode\fR=\fIMODE\fR | |
c2be74f0 | 265 | set file permission bits to MODE, not a=rw \- umask |
8f3b5a73 | 266 | .TP |
c2be74f0 JB |
267 | diff -Nur coreutils-6.4/man/mknod.1 coreutils-6.4.selinux/man/mknod.1 |
268 | --- coreutils-6.4/man/mknod.1 2006-10-22 19:56:35.000000000 +0000 | |
269 | +++ coreutils-6.4.selinux/man/mknod.1 2006-10-31 23:39:34.000000000 +0000 | |
0107077f AM |
270 | @@ -12,6 +12,9 @@ |
271 | .PP | |
272 | Mandatory arguments to long options are mandatory for short options too. | |
273 | .TP | |
274 | +\fB\-Z\fR, \fB\-\-context\fR=\fICONTEXT\fR | |
275 | +set security context (quoted string) | |
276 | +.TP | |
277 | \fB\-m\fR, \fB\-\-mode\fR=\fIMODE\fR | |
c2be74f0 | 278 | set file permission bits to MODE, not a=rw \- umask |
0107077f | 279 | .TP |
c2be74f0 JB |
280 | diff -Nur coreutils-6.4/man/runcon.1 coreutils-6.4.selinux/man/runcon.1 |
281 | --- coreutils-6.4/man/runcon.1 1970-01-01 00:00:00.000000000 +0000 | |
282 | +++ coreutils-6.4.selinux/man/runcon.1 2006-10-31 23:39:34.000000000 +0000 | |
0107077f AM |
283 | @@ -0,0 +1,39 @@ |
284 | +.TH RUNCON "1" "July 2003" "runcon (coreutils) 5.0" "selinux" | |
285 | +.SH NAME | |
286 | +runcon \- run command with specified security context | |
287 | +.SH SYNOPSIS | |
288 | +.B runcon | |
289 | +[\fI-t TYPE\fR] [\fI-l LEVEL\fR] [\fI-u USER\fR] [\fI-r ROLE\fR] \fICOMMAND\fR [\fIARGS...\fR] | |
290 | +.PP | |
291 | +or | |
292 | +.PP | |
293 | +.B runcon | |
294 | +\fICONTEXT\fR \fICOMMAND\fR [\fIargs...\fR] | |
295 | +.PP | |
296 | +.br | |
297 | +.SH DESCRIPTION | |
298 | +.PP | |
299 | +.\" Add any additional description here | |
300 | +.PP | |
301 | +Run COMMAND with current security context modified by one or more of LEVEL, | |
302 | +ROLE, TYPE, and USER, or with completely-specified CONTEXT. | |
303 | +.TP | |
304 | +\fB\-t\fR | |
305 | +change current type to the specified type | |
306 | +.TP | |
307 | +\fB\-l\fR | |
308 | +change current level range to the specified range | |
309 | +.TP | |
310 | +\fB\-r\fR | |
311 | +change current role to the specified role | |
312 | +.TP | |
313 | +\fB\-u\fR | |
314 | +change current user to the specified user | |
315 | +.PP | |
316 | +If none of \fI-t\fR, \fI-u\fR, \fI-r\fR, or \fI-l\fR, is specified, | |
317 | +the first argument is used as the complete context. Any additional | |
318 | +arguments after \fICOMMAND\fR are interpreted as arguments to the | |
319 | +command. | |
320 | +.PP | |
321 | +Note that only carefully-chosen contexts are likely to successfully | |
322 | +run. | |
c2be74f0 JB |
323 | diff -Nur coreutils-6.4/man/runcon.x coreutils-6.4.selinux/man/runcon.x |
324 | --- coreutils-6.4/man/runcon.x 1970-01-01 00:00:00.000000000 +0000 | |
325 | +++ coreutils-6.4.selinux/man/runcon.x 2006-10-31 23:39:34.000000000 +0000 | |
326 | @@ -0,0 +1,2 @@ | |
327 | +[DESCRIPTION] | |
328 | +.\" Add any additional description here | |
329 | diff -Nur coreutils-6.4/man/stat.1 coreutils-6.4.selinux/man/stat.1 | |
330 | --- coreutils-6.4/man/stat.1 2006-10-22 19:56:37.000000000 +0000 | |
331 | +++ coreutils-6.4.selinux/man/stat.1 2006-10-31 23:39:34.000000000 +0000 | |
332 | @@ -28,6 +28,9 @@ | |
0107077f AM |
333 | \fB\-t\fR, \fB\-\-terse\fR |
334 | print the information in terse form | |
335 | .TP | |
336 | +\fB\-Z\fR, \fB\-\-context\fR | |
337 | +print security context information for SELinux if available. | |
338 | +.TP | |
339 | \fB\-\-help\fR | |
340 | display this help and exit | |
341 | .TP | |
c2be74f0 JB |
342 | @@ -51,6 +54,9 @@ |
343 | %d | |
344 | Device number in decimal | |
0107077f AM |
345 | .TP |
346 | +%C | |
347 | +SELinux security context | |
348 | +.TP | |
349 | %D | |
350 | Device number in hex | |
351 | .TP | |
c2be74f0 JB |
352 | diff -Nur coreutils-6.4/man/vdir.1 coreutils-6.4.selinux/man/vdir.1 |
353 | --- coreutils-6.4/man/vdir.1 2006-10-22 19:56:39.000000000 +0000 | |
354 | +++ coreutils-6.4.selinux/man/vdir.1 2006-10-31 23:39:34.000000000 +0000 | |
355 | @@ -204,6 +204,20 @@ | |
0107077f AM |
356 | .TP |
357 | \fB\-1\fR | |
358 | list one file per line | |
359 | +.PP | |
842e81f4 | 360 | +SELinux options: |
0107077f AM |
361 | +.TP |
362 | +\fB\-\-lcontext\fR | |
363 | +Display security context. Enable \fB\-l\fR. Lines | |
364 | +will probably be too wide for most displays. | |
365 | +.TP | |
366 | +\fB\-\-context\fR | |
367 | +Display security context so it fits on most | |
368 | +displays. Displays only mode, user, group, | |
369 | +security context and file name. | |
370 | +.TP | |
371 | +\fB\-\-scontext\fR | |
372 | +Display only security context and file name. | |
373 | .TP | |
374 | \fB\-\-help\fR | |
375 | display this help and exit | |
c2be74f0 JB |
376 | diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in |
377 | --- coreutils-6.4/po/POTFILES.in 2006-10-31 23:38:15.000000000 +0000 | |
378 | +++ coreutils-6.4.selinux/po/POTFILES.in 2006-10-31 23:39:34.000000000 +0000 | |
379 | @@ -33,6 +33,7 @@ | |
380 | src/base64.c | |
381 | src/basename.c | |
382 | src/cat.c | |
383 | +src/chcon.c | |
384 | src/chgrp.c | |
385 | src/chmod.c | |
386 | src/chown-core.c | |
387 | @@ -91,6 +92,7 @@ | |
388 | src/remove.c | |
389 | src/rm.c | |
390 | src/rmdir.c | |
391 | +src/runcon.c | |
392 | src/seq.c | |
393 | src/setuidgid.c | |
394 | src/shred.c | |
c4978e77 JB |
395 | --- coreutils-6.7/po/pl.po.orig 2006-12-09 20:03:10.686071942 +0100 |
396 | +++ coreutils-6.7/po/pl.po 2006-12-09 20:06:54.942851606 +0100 | |
c2be74f0 JB |
397 | @@ -867,6 +867,95 @@ |
398 | msgid "%s: input file is output file" | |
399 |