Home
last modified time | relevance | path

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

/linux-6.12.1/security/selinux/ss/
Dservices.c2140 struct selinux_policy *newpolicy);
2187 struct selinux_policy *oldpolicy, *newpolicy = load_state->policy; in selinux_policy_commit() local
2196 if (oldpolicy->policydb.mls_enabled && !newpolicy->policydb.mls_enabled) in selinux_policy_commit()
2198 else if (!oldpolicy->policydb.mls_enabled && newpolicy->policydb.mls_enabled) in selinux_policy_commit()
2204 newpolicy->latest_granting = oldpolicy->latest_granting + 1; in selinux_policy_commit()
2206 newpolicy->latest_granting = 1; in selinux_policy_commit()
2207 seqno = newpolicy->latest_granting; in selinux_policy_commit()
2212 rcu_assign_pointer(state->policy, newpolicy); in selinux_policy_commit()
2215 rcu_assign_pointer(state->policy, newpolicy); in selinux_policy_commit()
2219 security_load_policycaps(newpolicy); in selinux_policy_commit()
[all …]
/linux-6.12.1/security/selinux/
Dselinuxfs.c327 static int sel_make_bools(struct selinux_policy *newpolicy, struct dentry *bool_dir,
330 static int sel_make_classes(struct selinux_policy *newpolicy,
505 struct selinux_policy *newpolicy) in sel_make_policy_nodes() argument
532 ret = sel_make_bools(newpolicy, tmp_bool_dir, &bool_num, in sel_make_policy_nodes()
537 ret = sel_make_classes(newpolicy, tmp_class_dir, in sel_make_policy_nodes()
1345 static int sel_make_bools(struct selinux_policy *newpolicy, struct dentry *bool_dir, in sel_make_bools() argument
1357 ret = security_get_bools(newpolicy, &num, &names, bool_pending_values); in sel_make_bools()
1390 ret = selinux_policy_genfs_sid(newpolicy, "selinuxfs", page, in sel_make_bools()
1767 static int sel_make_perm_files(struct selinux_policy *newpolicy, in sel_make_perm_files() argument
1775 rc = security_get_permissions(newpolicy, objclass, &perms, &nperms); in sel_make_perm_files()
[all …]