Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165246177
D58160.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
564 B
Referenced Files
None
Subscribers
None
D58160.diff
View Options
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c
+++ b/usr.sbin/syslogd/syslogd.c
@@ -3772,6 +3772,7 @@
int
p_open(const char *prog, int *rpd)
{
+ cap_rights_t rights;
struct sigaction act = { };
int pfd[2], pd;
pid_t pid;
@@ -3823,6 +3824,10 @@
dprintf("Warning: cannot change pipe to PID %d to non-blocking"
"behaviour.", pid);
}
+
+ if (cap_rights_limit(pd,
+ cap_rights_init(&rights, CAP_PDKILL, CAP_EVENT)) == -1)
+ err(1, "cap_rights_limit");
*rpd = pd;
return (pfd[1]);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 8, 3:42 AM (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34968741
Default Alt Text
D58160.diff (564 B)
Attached To
Mode
D58160: syslogd: Limit rights on procdescs
Attached
Detach File
Event Timeline
Log In to Comment