xref: /aosp_15_r20/external/libcap/pam_cap/sudotest.conf (revision 2810ac1b38eead2603277920c78344c84ddf3aff)
1*2810ac1bSKiyoung Kim# only root
2*2810ac1bSKiyoung Kimall                                root
3*2810ac1bSKiyoung Kim
4*2810ac1bSKiyoung Kim# this should fire for beta only
5*2810ac1bSKiyoung Kim!cap_chown                         beta
6*2810ac1bSKiyoung Kim
7*2810ac1bSKiyoung Kim# the next one should snag gamma since beta done
8*2810ac1bSKiyoung Kimcap_setuid,cap_chown               @three
9*2810ac1bSKiyoung Kim
10*2810ac1bSKiyoung Kim# neither of these should fire
11*2810ac1bSKiyoung Kimcap_chown                          beta gamma
12*2810ac1bSKiyoung Kim
13*2810ac1bSKiyoung Kim# just alpha
14*2810ac1bSKiyoung Kim!cap_chown,cap_setuid              @one
15*2810ac1bSKiyoung Kim
16*2810ac1bSKiyoung Kim# not this one
17*2810ac1bSKiyoung Kim^cap_setuid                        alpha
18*2810ac1bSKiyoung Kim
19*2810ac1bSKiyoung Kim# this should fire
20*2810ac1bSKiyoung Kim^cap_chown,^cap_setgid,!cap_setuid delta
21*2810ac1bSKiyoung Kim
22*2810ac1bSKiyoung Kim# not this one
23*2810ac1bSKiyoung Kimcap_setuid                         @four
24