Home
last modified time | relevance | path

Searched refs:newpolicy (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/security/selinux/ss/
Dservices.c2172 struct selinux_policy *newpolicy);
2220 struct selinux_policy *oldpolicy, *newpolicy = load_state->policy; in selinux_policy_commit() local
2229 if (oldpolicy->policydb.mls_enabled && !newpolicy->policydb.mls_enabled) in selinux_policy_commit()
2231 else if (!oldpolicy->policydb.mls_enabled && newpolicy->policydb.mls_enabled) in selinux_policy_commit()
2237 newpolicy->latest_granting = oldpolicy->latest_granting + 1; in selinux_policy_commit()
2239 newpolicy->latest_granting = 1; in selinux_policy_commit()
2240 seqno = newpolicy->latest_granting; in selinux_policy_commit()
2245 rcu_assign_pointer(state->policy, newpolicy); in selinux_policy_commit()
2248 rcu_assign_pointer(state->policy, newpolicy); in selinux_policy_commit()
2252 security_load_policycaps(state, newpolicy); in selinux_policy_commit()
[all …]
/linux-6.1.9/security/selinux/
Dselinuxfs.c357 static int sel_make_bools(struct selinux_policy *newpolicy, struct dentry *bool_dir,
360 static int sel_make_classes(struct selinux_policy *newpolicy,
542 struct selinux_policy *newpolicy) in sel_make_policy_nodes() argument
569 ret = sel_make_bools(newpolicy, tmp_bool_dir, &tmp_bool_num, in sel_make_policy_nodes()
574 ret = sel_make_classes(newpolicy, tmp_class_dir, in sel_make_policy_nodes()
1424 static int sel_make_bools(struct selinux_policy *newpolicy, struct dentry *bool_dir, in sel_make_bools() argument
1443 ret = security_get_bools(newpolicy, &num, &names, &values); in sel_make_bools()
1469 ret = selinux_policy_genfs_sid(newpolicy, "selinuxfs", page, in sel_make_bools()
1872 static int sel_make_perm_files(struct selinux_policy *newpolicy, in sel_make_perm_files() argument
1879 rc = security_get_permissions(newpolicy, objclass, &perms, &nperms); in sel_make_perm_files()
[all …]