mkdir,mkfifo,mknod: with -Z, create SMACK security context 21/8321/1
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 26 Jun 2013 08:48:27 +0000 (11:48 +0300)
committerMichael Demeter <michael.demeter@intel.com>
Mon, 12 Aug 2013 22:54:35 +0000 (15:54 -0700)
commit3b012e3ddf85e927b9cbebdd1303ded5aa02ff19
tree7d59cc453fecced15431c46ff99c47cdf73a1098
parent8bac991f18cdc1dfb8ab8fd2416066d420dfaca7
mkdir,mkfifo,mknod: with -Z, create SMACK security context

Enable creation of SMACK security context with -Z command-line switch
if SMACK is enabled.

* mkdir.c (main): Set process security context to given SMACK label.
* mkfifo.c (main): Likewise.
* mknod.c (main): Likewise.
* src/local.mk: link mk{dir, fifo, nod} with libsmack.
* NEWS: Mention the new feature.

Signed-off-by: Michael Demeter <michael.demeter@intel.com>
Conflicts:
NEWS

Change-Id: Ib65d0891db7968dd7da06653e244579b4f943785
NEWS
src/local.mk
src/mkdir.c
src/mkfifo.c
src/mknod.c