Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177068143
D8184.1793783370.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
531 B
Referenced Files
None
Subscribers
None
D8184.1793783370.diff
View Options
Index: cmp.c
===================================================================
--- cmp.c
+++ 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
Wed, Nov 4, 9:09 AM (3 h, 15 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41417990
Default Alt Text
D8184.1793783370.diff (531 B)
Attached To
Mode
D8184: Limit stdin in cmp(1).
Attached
Detach File
Event Timeline