Home
last modified time | relevance | path

Searched refs:CAPNG_EFFECTIVE (Results 1 – 8 of 8) sorted by relevance

/external/libcap-ng/libcap-ng-0.7/src/test/
Dlib_test.c64 rc = capng_update(CAPNG_ADD, CAPNG_EFFECTIVE, i); in main()
69 rc = capng_have_capability(CAPNG_EFFECTIVE, i); in main()
102 text=capng_print_caps_text(CAPNG_PRINT_BUFFER, CAPNG_EFFECTIVE); in main()
120 rc = capng_update(CAPNG_DROP, CAPNG_EFFECTIVE, i); in main()
133 rc = capng_update(CAPNG_ADD, CAPNG_EFFECTIVE, i); in main()
147 rc = capng_updatev(CAPNG_ADD, CAPNG_EFFECTIVE, in main()
153 rc = capng_have_capability(CAPNG_EFFECTIVE, CAP_CHOWN) && in main()
154 capng_have_capability(CAPNG_EFFECTIVE, CAP_FOWNER) && in main()
155 capng_have_capability(CAPNG_EFFECTIVE, CAP_KILL); in main()
/external/libcap-ng/libcap-ng-0.7/bindings/python/test/
Dcapng-test.py32 rc = capng.capng_update(capng.CAPNG_ADD, capng.CAPNG_EFFECTIVE, i)
37 rc = capng.capng_have_capability(capng.CAPNG_EFFECTIVE, int(i))
48 rc = capng.capng_update(capng.CAPNG_DROP, capng.CAPNG_EFFECTIVE, i)
58 rc = capng.capng_update(capng.CAPNG_ADD, capng.CAPNG_EFFECTIVE, i)
/external/libcap-ng/libcap-ng-0.7/src/
Dcap-ng.c409 if (CAPNG_EFFECTIVE & type) in capng_update()
424 if (CAPNG_EFFECTIVE & type) in capng_update()
481 if (capng_have_capability(CAPNG_EFFECTIVE, CAP_SETPCAP)) { in capng_apply()
580 if (capng_have_capability(CAPNG_EFFECTIVE, CAP_SETPCAP) == 0 && in capng_change_id()
583 CAPNG_EFFECTIVE|CAPNG_PERMITTED, CAP_SETPCAP); in capng_change_id()
585 if (gid == -1 || capng_have_capability(CAPNG_EFFECTIVE, CAP_SETGID)) in capng_change_id()
589 capng_update(CAPNG_ADD, CAPNG_EFFECTIVE|CAPNG_PERMITTED, in capng_change_id()
592 if (uid == -1 || capng_have_capability(CAPNG_EFFECTIVE, CAP_SETUID)) in capng_change_id()
596 capng_update(CAPNG_ADD, CAPNG_EFFECTIVE|CAPNG_PERMITTED, in capng_change_id()
644 capng_update(CAPNG_DROP, CAPNG_EFFECTIVE|CAPNG_PERMITTED, in capng_change_id()
[all …]
Dcap-ng.h39 typedef enum { CAPNG_EFFECTIVE=1, CAPNG_PERMITTED=2, enumerator
/external/libcap-ng/libcap-ng-0.7/utils/
Dcaptest.c71 capng_have_capability(CAPNG_EFFECTIVE, in report()
105 CAPNG_EFFECTIVE); in report()
244 capng_update(CAPNG_ADD, CAPNG_EFFECTIVE|CAPNG_PERMITTED, in main()
251 CAPNG_EFFECTIVE); in main()
Dfilecap.c137 CAPNG_PERMITTED|CAPNG_EFFECTIVE, in main()
/external/libcap-ng/libcap-ng-0.7/bindings/python/
Dcapng.py109 CAPNG_EFFECTIVE = _capng.CAPNG_EFFECTIVE variable
/external/dbus/bus/
Dselinux.c154 if (capng_have_capability(CAPNG_EFFECTIVE, CAP_AUDIT_WRITE)) in log_callback()
1057 capng_update (CAPNG_ADD, CAPNG_EFFECTIVE | CAPNG_PERMITTED, in _dbus_change_to_daemon_user()