Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
libteam
cap_net_raw.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cap_net_raw.patch of Package libteam
Index: libteam-1.21/teamd/teamd.c =================================================================== --- libteam-1.21.orig/teamd/teamd.c +++ libteam-1.21/teamd/teamd.c @@ -1681,7 +1681,7 @@ static void teamd_context_fini(struct te static int teamd_drop_privileges() { - cap_value_t cv[] = {CAP_NET_ADMIN, CAP_NET_BIND_SERVICE}; + cap_value_t cv[] = {CAP_NET_ADMIN, CAP_NET_BIND_SERVICE, CAP_NET_RAW}; cap_t my_caps; struct passwd *pw = NULL; struct group *grpent = NULL; @@ -1731,9 +1731,9 @@ static int teamd_drop_privileges() if ((my_caps = cap_init()) == NULL) goto error; - if (cap_set_flag(my_caps, CAP_EFFECTIVE, 2, cv, CAP_SET) < 0) + if (cap_set_flag(my_caps, CAP_EFFECTIVE, ARRAY_SIZE(cv), cv, CAP_SET) < 0) goto error; - if (cap_set_flag(my_caps, CAP_PERMITTED, 2, cv, CAP_SET) < 0) + if (cap_set_flag(my_caps, CAP_PERMITTED, ARRAY_SIZE(cv), cv, CAP_SET) < 0) goto error; if (cap_set_proc(my_caps) < 0) goto error;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor