![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 #include <sys/capability.h> 0003 #include <linux/capability.h> 0004 0005 int main(void) 0006 { 0007 cap_flag_value_t val; 0008 cap_t caps = cap_get_proc(); 0009 0010 if (!caps) 0011 return 1; 0012 0013 if (cap_get_flag(caps, CAP_SYS_ADMIN, CAP_EFFECTIVE, &val) != 0) 0014 return 1; 0015 0016 if (cap_free(caps) != 0) 0017 return 1; 0018 0019 return 0; 0020 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |