Searched refs:LSM_ATTR_CURRENT (Results 1 – 8 of 8) sorted by relevance
/linux/tools/testing/selftests/lsm/ |
H A D | lsm_set_self_attr_test.c | 20 ASSERT_EQ(-1, lsm_set_self_attr(LSM_ATTR_CURRENT, NULL, in TEST() 32 ASSERT_LE(1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size, in TEST() 35 ASSERT_EQ(-1, lsm_set_self_attr(LSM_ATTR_CURRENT, ctx, 1, 0)); in TEST() 48 ASSERT_LE(1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size, in TEST() 51 ASSERT_EQ(-1, lsm_set_self_attr(LSM_ATTR_CURRENT, ctx, size, 1)); in TEST() 65 ASSERT_LE(1, lsm_get_self_attr(LSM_ATTR_CURRENT, tctx, &size, in TEST() 68 ASSERT_EQ(-1, lsm_set_self_attr(LSM_ATTR_CURRENT | LSM_ATTR_PREV, tctx, in TEST()
|
H A D | lsm_get_self_attr_test.c | 34 ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, NULL, 0)); in TEST() 46 rc = lsm_get_self_attr(LSM_ATTR_CURRENT, NULL, &size, 0); in TEST() 64 ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size, 0)); in TEST() 87 ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size, in TEST() 104 ASSERT_EQ(1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, in TEST() 107 ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, in TEST() 126 ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT | LSM_ATTR_PREV, ctx, in TEST() 132 ASSERT_EQ(-1, lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size, in TEST() 189 count = lsm_get_self_attr(LSM_ATTR_CURRENT, ctx, &size, 0); in TEST()
|
/linux/include/uapi/linux/ |
H A D | lsm.h | 80 #define LSM_ATTR_CURRENT 100 macro
|
/linux/security/ |
H A D | lsm_syscalls.c | 30 return LSM_ATTR_CURRENT; in lsm_name_to_attr()
|
/linux/Documentation/userspace-api/ |
H A D | lsm.rst | 17 ``LSM_ATTR_CURRENT`` is the current, active security context of the
|
/linux/security/apparmor/ |
H A D | lsm.c | 791 case LSM_ATTR_CURRENT: in apparmor_getselfattr() 880 if (attr == LSM_ATTR_CURRENT) { in do_setattr() 915 if (attr == LSM_ATTR_CURRENT) in do_setattr() 932 if (attr != LSM_ATTR_CURRENT && attr != LSM_ATTR_EXEC) in apparmor_setselfattr()
|
/linux/security/smack/ |
H A D | smack_lsm.c | 3680 if (attr != LSM_ATTR_CURRENT) in smack_getselfattr() 3743 if (attr != LSM_ATTR_CURRENT) in do_setattr()
|
/linux/security/selinux/ |
H A D | hooks.c | 6351 case LSM_ATTR_CURRENT: in selinux_lsm_getattr() 6418 case LSM_ATTR_CURRENT: in selinux_lsm_setattr() 6493 } else if (attr == LSM_ATTR_CURRENT) { in selinux_lsm_setattr()
|