Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156456080
D34927.id105050.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
814 B
Referenced Files
None
Subscribers
None
D34927.id105050.diff
View Options
Index: usr.sbin/iscsid/iscsid.c
===================================================================
--- usr.sbin/iscsid/iscsid.c
+++ usr.sbin/iscsid/iscsid.c
@@ -496,13 +496,18 @@
capsicate(struct iscsid_connection *conn)
{
cap_rights_t rights;
+ const unsigned long cmds[] = {
#ifdef ICL_KERNEL_PROXY
- const unsigned long cmds[] = { ISCSIDCONNECT, ISCSIDSEND, ISCSIDRECEIVE,
- ISCSIDHANDOFF, ISCSIDFAIL, ISCSISADD, ISCSISREMOVE, ISCSISMODIFY };
-#else
- const unsigned long cmds[] = { ISCSIDHANDOFF, ISCSIDFAIL, ISCSISADD,
- ISCSISREMOVE, ISCSISMODIFY };
+ ISCSIDCONNECT,
+ ISCSIDSEND,
+ ISCSIDRECEIVE,
#endif
+ ISCSIDHANDOFF,
+ ISCSIDFAIL,
+ ISCSISADD,
+ ISCSISREMOVE,
+ ISCSISMODIFY
+ };
cap_rights_init(&rights, CAP_IOCTL);
if (caph_rights_limit(conn->conn_iscsi_fd, &rights) < 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 14, 7:35 PM (11 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33042858
Default Alt Text
D34927.id105050.diff (814 B)
Attached To
Mode
D34927: iscsid: Push #ifdef ICL_KERNEL_PROXY into cap_ioctl_limits list.
Attached
Detach File
Event Timeline
Log In to Comment