Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143600077
D52252.id161218.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
546 B
Referenced Files
None
Subscribers
None
D52252.id161218.diff
View Options
diff --git a/sys/dev/hwpmc/hwpmc_mod.c b/sys/dev/hwpmc/hwpmc_mod.c
--- a/sys/dev/hwpmc/hwpmc_mod.c
+++ b/sys/dev/hwpmc/hwpmc_mod.c
@@ -1068,10 +1068,9 @@
*/
for (i = 0; !decline_attach && i < tc->cr_ngroups; i++)
decline_attach = !groupmember(tc->cr_groups[i], oc);
-
- /* check the read and saved gids too */
if (decline_attach == 0)
- decline_attach = !groupmember(tc->cr_rgid, oc) ||
+ decline_attach = !groupmember(tc->cr_gid, oc) ||
+ !groupmember(tc->cr_rgid, oc) ||
!groupmember(tc->cr_svgid, oc);
crfree(tc);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 1:00 AM (6 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28233569
Default Alt Text
D52252.id161218.diff (546 B)
Attached To
Mode
D52252: hwpmc: On attach, ensure owner is a target effective GID's member
Attached
Detach File
Event Timeline
Log In to Comment