<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src, branch selinux</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=selinux</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=selinux'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2007-03-18T17:15:08Z</updated>
<entry>
<title>* src/runcon.c (main): Don't reorder arguments. Reported by</title>
<updated>2007-03-18T17:15:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-03-18T17:04:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9aee8e78ea1d7966b5d79034874d9cf831565410'/>
<id>urn:sha1:9aee8e78ea1d7966b5d79034874d9cf831565410</id>
<content type='text'>
Ulrich Drepper in &lt;http://bugzilla.redhat.com/232652&gt;.
* tests/misc/runcon-no-reorder: New file.  Test for the above.
* tests/misc/Makefile.am (TESTS): Add runcon-no-reorder.
</content>
</entry>
<entry>
<title>* src/runcon.c (main): Remove "." at end of a diagnostic.</title>
<updated>2007-03-18T17:15:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-03-18T16:52:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ab511a2106e8395ee86997c07c13bd5fa2472c5a'/>
<id>urn:sha1:ab511a2106e8395ee86997c07c13bd5fa2472c5a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* src/runcon.c: New program.</title>
<updated>2007-03-18T17:15:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-02-02T17:58:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6f5700ac8a58f60490fb6197b8dbda20b0734c0e'/>
<id>urn:sha1:6f5700ac8a58f60490fb6197b8dbda20b0734c0e</id>
<content type='text'>
* src/Makefile.am (bin_PROGRAMS): Add runcon.
(runcon_LDADD): Define.
* README: Add runcon to the list of programs.
* AUTHORS: Add this: runcon: Russell Coker
* tests/help-version: Add runcon as an exception.
* man/Makefile.am (dist_man_MANS): Add runcon.1.
(runcon.1): New dependency.
* po/POTFILES.in: Add src/runcon.c.
</content>
</entry>
<entry>
<title>mkfifo, mknod: Accept new "-Z, --context=C" option.</title>
<updated>2007-03-18T17:15:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-31T23:26:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3f619c59cf13818604e1bf15924af7568ba21cf6'/>
<id>urn:sha1:3f619c59cf13818604e1bf15924af7568ba21cf6</id>
<content type='text'>
* src/mkfifo.c, src/mknod.c: Include &lt;selinux/selinux.h&gt;.
(main): Honor it.
* src/Makefile.am (mkfifo_LDADD, mknod_LDADD): Use $(LIB_SELINUX).
</content>
</entry>
<entry>
<title>mkdir: Accept new "-Z, --context=C" option.</title>
<updated>2007-03-18T17:15:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-31T22:59:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0db199df6976327fbcff5970ba554ce4ee2f2e06'/>
<id>urn:sha1:0db199df6976327fbcff5970ba554ce4ee2f2e06</id>
<content type='text'>
* src/mkdir.c: Include &lt;selinux/selinux.h&gt;.
(main): Honor it.
* src/Makefile.am (mkdir_LDADD): Use $(LIB_SELINUX).
</content>
</entry>
<entry>
<title>* tests/cp/cp-a-selinux: New file. Test for the bug reported in</title>
<updated>2007-03-18T17:15:08Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-31T22:01:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=beb12e09f3c93a7175d37bc1894bc047f26cc660'/>
<id>urn:sha1:beb12e09f3c93a7175d37bc1894bc047f26cc660</id>
<content type='text'>
* tests/cp/Makefile.am (TESTS): Add cp-a-selinux.

* tests/selinux: New file.
* tests/Makefile.am (EXTRA_DIST): Add selinux.
* tests/misc/selinux: Source the new script, rather than open coding it.

Change how "cp -a" and "cp --preserve=context" work with SELinux.
Now, cp -a attempts to preserve context, but failure to do so does
not change cp's exit status.  However "cp --preserve=context" is
similar, but failure *does* cause cp to exit with nonzero status.
* src/copy.h (struct cp_options) [require_preserve_context]: New member.
* src/copy.c (copy_reg, copy_internal): Implement the above.
* src/mv.c (cp_option_init): Initialize the new member.
* src/install.c (cp_option_init): Likewise.
* src/cp.c (cp_option_init): Likewise.
(decode_preserve_arg): Set it or reset it.

FIXME: add an on-writable-NFS-only test
</content>
</entry>
<entry>
<title>* src/system.h (GETOPT_SELINUX_CONTEXT_OPTION_DECL): Define.</title>
<updated>2007-03-18T17:15:06Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-20T15:33:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=65ba507e17baefb7808b24dd7627814a0ea7902b'/>
<id>urn:sha1:65ba507e17baefb7808b24dd7627814a0ea7902b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cp, mv, install: add SELinux support, but unlike with the Red Hat</title>
<updated>2007-03-18T17:15:06Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-20T15:10:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=795c052e334b63e9ed9c5f07051a598b2d3f7b3d'/>
<id>urn:sha1:795c052e334b63e9ed9c5f07051a598b2d3f7b3d</id>
<content type='text'>
patch, mv and cp do not provide the "-Z context" option.
* src/copy.c: Include &lt;selinux/selinux.h&gt;.
(restore_default_fscreatecon): New function.
(copy_reg): Make cp --preserve=context work for existing destination.
(copy_internal): Likewise for new destinations.
* src/copy.h (cp_options) [preserve_security_context]: New member.
* src/cp.c: Include &lt;selinux/selinux.h&gt;.
(selinux_enabled): New global.
(usage): Mention new --preserve=context option.
(PRESERVE_CONTEXT): Define/use.
(decode_preserve_arg): Handle PRESERVE_CONTEXT.
(main): Remove an obsolete comment.
If --preserve=context is specified on a system without SELinux
enabled, give a diagnostic and fail.
* src/mv.c: Include &lt;selinux/selinux.h&gt;.
Set x-&gt;preserve_security_context if SELinux is enabled.
* src/install.c: Accept new "-Z, --context=C" option.
Accept --preserve-context option (but not -P option).
Accept alternate spelling: --preserve_context, for now.
Include &lt;selinux/selinux.h&gt; and "quotearg.h".
(selinux_enabled, use_default_selinux_context): New globals.
(PRESERVE_CONTEXT_OPTION): Define.
(cp_option_init): Default: do not preserve security context.
(setdefaultfilecon): New function.
(main): Honor new options.
* src/Makefile.am (mv_LDADD, cp_LDADD, ginstall_LDADD):
Add $(LIB_SELINUX).
</content>
</entry>
<entry>
<title>* src/c99-to-c89.diff: Remove the ls.c patch, now that I've</title>
<updated>2007-03-18T17:15:06Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-13T18:27:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3765e5a26e339d4fffd8870c33ffbf113e8e8a33'/>
<id>urn:sha1:3765e5a26e339d4fffd8870c33ffbf113e8e8a33</id>
<content type='text'>
temporarily removed the offending c99'ism.
</content>
</entry>
<entry>
<title>* src/chcon.c (usage): Split a string literal that was longer than 509.</title>
<updated>2007-03-18T17:15:06Z</updated>
<author>
<name>Jim Meyering</name>
<email>jim@meyering.net</email>
</author>
<published>2007-01-13T17:24:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b64a11dc769efc3af5b50b7d83a48b3e7cecca6f'/>
<id>urn:sha1:b64a11dc769efc3af5b50b7d83a48b3e7cecca6f</id>
<content type='text'>
</content>
</entry>
</feed>
