Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154629509
D8184.id21162.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
582 B
Referenced Files
None
Subscribers
None
D8184.id21162.diff
View Options
Index: head/usr.bin/cmp/cmp.c
===================================================================
--- head/usr.bin/cmp/cmp.c
+++ head/usr.bin/cmp/cmp.c
@@ -164,6 +164,14 @@
if (cap_fcntls_limit(fd2, fcntls) < 0 && errno != ENOSYS)
err(ERR_EXIT, "unable to limit fcntls for %s", file2);
+ if (!special) {
+ cap_rights_init(&rights);
+ if (cap_rights_limit(STDIN_FILENO, &rights) < 0 &&
+ errno != ENOSYS) {
+ err(ERR_EXIT, "unable to limit stdio");
+ }
+ }
+
if (caph_limit_stdout() == -1 || caph_limit_stderr() == -1)
err(ERR_EXIT, "unable to limit stdio");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 2:18 AM (9 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32362278
Default Alt Text
D8184.id21162.diff (582 B)
Attached To
Mode
D8184: Limit stdin in cmp(1).
Attached
Detach File
Event Timeline
Log In to Comment