Home
last modified time | relevance | path

Searched refs:root_ns (Results 1 – 13 of 13) sorted by relevance

/Linux-v5.4/security/apparmor/
Dsecid.c82 len = aa_label_asxprint(secdata, root_ns, label, in apparmor_secid_to_secctx()
87 len = aa_label_snxprint(NULL, 0, root_ns, label, in apparmor_secid_to_secctx()
102 label = aa_label_strn_parse(&root_ns->unconfined->label, secdata, in apparmor_secctx_to_secid()
Dpolicy_ns.c26 struct aa_ns *root_ns; variable
392 root_ns = alloc_ns(NULL, "root"); in aa_alloc_root_ns()
393 if (!root_ns) in aa_alloc_root_ns()
404 struct aa_ns *ns = root_ns; in aa_free_root_ns()
406 root_ns = NULL; in aa_free_root_ns()
Daudit.c82 if (profile->ns != root_ns) { in audit_pre()
91 aa_label_xaudit(ab, root_ns, label, FLAG_VIEW_SUBNS, in audit_pre()
197 rule->label = aa_label_parse(&root_ns->unconfined->label, rulestr, in aa_audit_rule_init()
Dapparmorfs.c2527 ns_subload(root_ns) = dent; in aa_create_aafs()
2533 ns_subreplace(root_ns) = dent; in aa_create_aafs()
2539 ns_subremove(root_ns) = dent; in aa_create_aafs()
2545 ns_subrevision(root_ns) = dent; in aa_create_aafs()
2548 mutex_lock_nested(&root_ns->lock, root_ns->level); in aa_create_aafs()
2549 error = __aafs_ns_mkdir(root_ns, aafs_mnt->mnt_root, ".policy", in aa_create_aafs()
2551 mutex_unlock(&root_ns->lock); in aa_create_aafs()
Dnet.c199 label = aa_label_strn_parse(&root_ns->unconfined->label, in apparmor_secmark_init()
Dlabel.c1606 ns = root_ns; in aa_label_snxprint()
1869 if (str == NULL || (*str == '=' && base != &root_ns->unconfined->label)) in aa_label_strn_parse()
1961 if (labels_ns(this) != root_ns) in aa_labelset_destroy()
Dlsm.c1530 set_cred_label(cred, aa_get_label(ns_unconfined(root_ns))); in set_init_ctx()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.c242 static void cleanup_root_ns(struct mlx5_flow_root_namespace *root_ns);
2072 struct mlx5_flow_root_namespace *root_ns; in mlx5_get_flow_namespace() local
2098 root_ns = steering->egress_root_ns; in mlx5_get_flow_namespace()
2100 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace()
2103 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace()
2106 root_ns = steering->root_ns; in mlx5_get_flow_namespace()
2110 if (!root_ns) in mlx5_get_flow_namespace()
2113 fs_prio = find_prio(&root_ns->ns, prio); in mlx5_get_flow_namespace()
2317 struct mlx5_flow_root_namespace *root_ns; in create_root_ns() local
2325 root_ns = kzalloc(sizeof(*root_ns), GFP_KERNEL); in create_root_ns()
[all …]
Deswitch_offloads_termtbl.c53 struct mlx5_flow_namespace *root_ns; in mlx5_eswitch_termtbl_create() local
57 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_eswitch_termtbl_create()
58 if (!root_ns) { in mlx5_eswitch_termtbl_create()
68 tt->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, prio, 1, 1, in mlx5_eswitch_termtbl_create()
Deswitch.c290 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_vepa_table() local
294 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_vepa_table()
295 if (!root_ns) { in esw_create_legacy_vepa_table()
301 fdb = mlx5_create_auto_grouped_flow_table(root_ns, LEGACY_VEPA_PRIO, in esw_create_legacy_vepa_table()
318 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_fdb_table() local
330 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_fdb_table()
331 if (!root_ns) { in esw_create_legacy_fdb_table()
343 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_legacy_fdb_table()
963 struct mlx5_flow_namespace *root_ns; in esw_vport_enable_egress_acl() local
983 root_ns = mlx5_get_flow_vport_acl_namespace(dev, MLX5_FLOW_NAMESPACE_ESW_EGRESS, in esw_vport_enable_egress_acl()
[all …]
Deswitch_offloads.c1051 struct mlx5_flow_namespace *root_ns; in esw_create_offloads_fdb_tables() local
1064 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in esw_create_offloads_fdb_tables()
1065 if (!root_ns) { in esw_create_offloads_fdb_tables()
1070 esw->fdb_table.offloads.ns = root_ns; in esw_create_offloads_fdb_tables()
1071 err = mlx5_flow_namespace_set_mode(root_ns, in esw_create_offloads_fdb_tables()
1105 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_offloads_fdb_tables()
1217 mlx5_flow_namespace_set_mode(root_ns, MLX5_FLOW_STEERING_MODE_DMFS); in esw_create_offloads_fdb_tables()
Dfs_core.h111 struct mlx5_flow_root_namespace *root_ns; member
/Linux-v5.4/security/apparmor/include/
Dpolicy_ns.h77 extern struct aa_ns *root_ns;