FreeBSD Bugzilla – Attachment 8584 Details for
Bug 17910
Do not allow 'operators' to drop to single user via shutdown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 494 bytes, created by
Anarcat
on 2000-04-10 22:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Anarcat
Created:
2000-04-10 22:00:01 UTC
Size:
494 bytes
patch
obsolete
>*** /usr/src/sbin/shutdown/shutdown.c.orig Thu Sep 9 22:09:39 1999 >--- /usr/src/sbin/shutdown/shutdown.c Mon Apr 10 16:33:27 2000 >*************** >*** 163,168 **** >--- 163,172 ---- > if (nosync != NULL && !oflag) > usage("-n requires -o"); > >+ /* do not allow anyone else than root to drop to single user */ >+ if ((!dohalt) && (!doreboot) && (getuid() != 0)) >+ usage("only root can drop to single user"); >+ > getoffset(*argv++); > > if (*argv) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17910
: 8584