Searched refs:policy_str (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-6.6/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 185 static char *policy_str = UGID_POLICY_STRING; in write_uid_policies() local 192 written = write(fd, policy_str, strlen(policy_str)); in write_uid_policies() 193 if (written != strlen(policy_str)) { in write_uid_policies() 209 static char *policy_str = UGID_POLICY_STRING; in write_gid_policies() local 216 written = write(fd, policy_str, strlen(policy_str)); in write_gid_policies() 217 if (written != strlen(policy_str)) { in write_gid_policies()
|
/kernel/linux/linux-5.10/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.c | 145 static char *policy_str = in write_policies() local 156 written = write(fd, policy_str, strlen(policy_str)); in write_policies() 157 if (written != strlen(policy_str)) { in write_policies()
|
/kernel/linux/linux-5.10/security/safesetid/ |
H A D | securityfs.c | 80 kfree(pol->policy_str); in __release_ruleset() 149 pol->policy_str = NULL; in handle_policy_update() 158 pol->policy_str = kstrdup(buf, GFP_KERNEL); in handle_policy_update() 159 if (pol->policy_str == NULL) { in handle_policy_update() 273 kbuf = pol->policy_str; in safesetid_file_read()
|
H A D | lsm.h | 60 char *policy_str; member
|
/kernel/linux/linux-6.6/security/safesetid/ |
H A D | securityfs.c | 80 kfree(pol->policy_str); in __release_ruleset() 149 pol->policy_str = NULL; in handle_policy_update() 158 pol->policy_str = kstrdup(buf, GFP_KERNEL); in handle_policy_update() 159 if (pol->policy_str == NULL) { in handle_policy_update() 273 kbuf = pol->policy_str; in safesetid_file_read()
|
H A D | lsm.h | 60 char *policy_str; member
|
/kernel/linux/linux-5.10/drivers/pci/pcie/ |
H A D | aspm.c | 99 static const char *policy_str[] = { variable 1169 i = sysfs_match_string(policy_str, val); in pcie_aspm_set_policy() 1190 for (i = 0; i < ARRAY_SIZE(policy_str); i++) in pcie_aspm_get_policy() 1192 cnt += sprintf(buffer + cnt, "[%s] ", policy_str[i]); in pcie_aspm_get_policy() 1194 cnt += sprintf(buffer + cnt, "%s ", policy_str[i]); in pcie_aspm_get_policy()
|
/kernel/linux/linux-6.6/drivers/pci/pcie/ |
H A D | aspm.c | 86 static const char *policy_str[] = { variable 1213 i = sysfs_match_string(policy_str, val); in pcie_aspm_set_policy() 1234 for (i = 0; i < ARRAY_SIZE(policy_str); i++) in pcie_aspm_get_policy() 1236 cnt += sprintf(buffer + cnt, "[%s] ", policy_str[i]); in pcie_aspm_get_policy() 1238 cnt += sprintf(buffer + cnt, "%s ", policy_str[i]); in pcie_aspm_get_policy()
|
Completed in 7 milliseconds