sysvinit: allow users in shutdown group to perform halt/reboot
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Wed, 3 Jul 2013 14:02:49 +0000 (17:02 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Jul 2013 08:41:54 +0000 (09:41 +0100)
commit58851f4a6a9918f9ab983cb46abeeb12d0ae2614
treeb025219a47d0754265aaf671251d9f783bbc8790
parent948b93b600a2ef6492bc433b4fdd71550dfc9206
sysvinit: allow users in shutdown group to perform halt/reboot

For this to happen:
 * 'shutdown' group has been created;
 * changed ownership group for /sbin/halt and /sbin/shutdown to 'shutdown';
 * deny execution rights to other users except 'root' and those belonging
   to 'shutdown' group;
 * set setuid bit to both apps;

So, basically, in order for a normal user to be able to shutdown/reboot
the machine, it must be a member of 'shutdown' group.

Other changes:
 * fixed identation for 2 lines that used spaces instead of tabs;

[YOCTO #4345]

(From OE-Core rev: b32d06fbe797cd39cc19f62bda8a698effe7c0ea)

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb