Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174401300
D8743.id22973.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
725 B
Referenced Files
None
Subscribers
None
D8743.id22973.diff
View Options
Index: head/lib/libcapsicum/capsicum_helpers.h
===================================================================
--- head/lib/libcapsicum/capsicum_helpers.h
+++ head/lib/libcapsicum/capsicum_helpers.h
@@ -41,6 +41,7 @@
#define CAPH_IGNORE_EBADF 0x0001
#define CAPH_READ 0x0002
#define CAPH_WRITE 0x0004
+#define CAPH_LOOKUP 0x0008
static __inline int
caph_limit_stream(int fd, int flags)
@@ -54,6 +55,8 @@
cap_rights_set(&rights, CAP_READ);
if ((flags & CAPH_WRITE) != 0)
cap_rights_set(&rights, CAP_WRITE);
+ if ((flags & CAPH_LOOKUP) != 0)
+ cap_rights_set(&rights, CAP_LOOKUP);
if (cap_rights_limit(fd, &rights) < 0 && errno != ENOSYS) {
if (errno == EBADF && (flags & CAPH_IGNORE_EBADF) != 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 10:45 PM (5 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40158487
Default Alt Text
D8743.id22973.diff (725 B)
Attached To
Mode
D8743: capsicum_helpers: Add LOOKUP flag
Attached
Detach File
Event Timeline
Log In to Comment