FreeBSD Bugzilla – Attachment 13267 Details for
Bug 25337
dmesg -a should be restricted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 501 bytes, created by
mitsuru
on 2001-02-24 07:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mitsuru
Created:
2001-02-24 07:30:01 UTC
Size:
501 bytes
patch
obsolete
>--- dmesg.c.dist Wed Feb 21 10:00:26 2001 >+++ dmesg.c Wed Feb 21 10:02:11 2001 >@@ -56,6 +56,7 @@ > #include <unistd.h> > #include <vis.h> > #include <sys/syslog.h> >+#include <sys/types.h> > > struct nlist nl[] = { > #define X_MSGBUF 0 >@@ -87,6 +88,10 @@ > while ((ch = getopt(argc, argv, "aM:N:")) != -1) > switch(ch) { > case 'a': >+ if (getuid() != (uid_t)0) { >+ fprintf(stderr,"dmesg: must be root to get all data in the message buffer\n"); >+ exit(1); >+ } > all++; > break; > case 'M':
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 25337
: 13267