Do not allow non-root to control quota_nld service
This commit is contained in:
parent
15a8b20f5e
commit
735d99b14e
@ -267,6 +267,7 @@ rm -rf %{buildroot}
|
||||
%changelog
|
||||
* Fri Feb 04 2011 Petr Pisar <ppisar@redhat.com> - 1:4.00-0.6.pre1
|
||||
- Store quota_nld PID into PID file (bug #634137)
|
||||
- Do not allow non-root to control quota_nld service (bug #634137)
|
||||
|
||||
* Wed Feb 02 2011 Petr Pisar <ppisar@redhat.com> - 1:4.00-0.5.pre1
|
||||
- Correct manual pages
|
||||
|
||||
2
quota_nld.init
Executable file → Normal file
2
quota_nld.init
Executable file → Normal file
@ -29,6 +29,7 @@ prog="quota_nld"
|
||||
lockfile=/var/lock/subsys/$prog
|
||||
|
||||
start() {
|
||||
[ "$(id -u)" -eq 0 ] || exit 4
|
||||
[ -x $exec ] || exit 5
|
||||
echo -n $"Starting $prog: "
|
||||
daemon $exec $QUOTA_NLD_OPTS
|
||||
@ -39,6 +40,7 @@ start() {
|
||||
}
|
||||
|
||||
stop() {
|
||||
[ "$(id -u)" -eq 0 ] || exit 4
|
||||
echo -n $"Stopping $prog: "
|
||||
killproc $prog
|
||||
retval=$?
|
||||
|
||||
Loading…
Reference in New Issue
Block a user