Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102710280
D46884.id144508.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
796 B
Referenced Files
None
Subscribers
None
D46884.id144508.diff
View Options
diff --git a/sys/netinet/sctp_syscalls.c b/sys/netinet/sctp_syscalls.c
--- a/sys/netinet/sctp_syscalls.c
+++ b/sys/netinet/sctp_syscalls.c
@@ -141,13 +141,14 @@
{
struct file *headfp, *nfp = NULL;
struct socket *head, *so;
+ struct filecaps fcaps;
cap_rights_t rights;
u_int fflag;
int error, fd;
AUDIT_ARG_FD(uap->sd);
- error = getsock(td, uap->sd, cap_rights_init_one(&rights, CAP_PEELOFF),
- &headfp);
+ error = getsock_cap(td, uap->sd,
+ cap_rights_init_one(&rights, CAP_PEELOFF), &headfp, &fcaps);
if (error != 0)
goto done2;
fflag = atomic_load_int(&headfp->f_flag);
@@ -165,7 +166,7 @@
* but that is ok.
*/
- error = falloc(td, &nfp, &fd, 0);
+ error = falloc_caps(td, &nfp, &fd, 0, &fcaps);
if (error != 0)
goto done;
td->td_retval[0] = fd;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 4:45 AM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13549200
Default Alt Text
D46884.id144508.diff (796 B)
Attached To
Mode
D46884: sctp: propagate cap rights on sctp_peeloff
Attached
Detach File
Event Timeline
Log In to Comment