Home
last modified time | relevance | path

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

/linux/security/apparmor/
A 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()
A 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()
A Daudit.c80 if (profile->ns != root_ns) { in audit_pre()
89 aa_label_xaudit(ab, root_ns, label, FLAG_VIEW_SUBNS, in audit_pre()
195 rule->label = aa_label_parse(&root_ns->unconfined->label, rulestr, in aa_audit_rule_init()
A Dapparmorfs.c2615 ns_subload(root_ns) = dent; in aa_create_aafs()
2621 ns_subreplace(root_ns) = dent; in aa_create_aafs()
2627 ns_subremove(root_ns) = dent; in aa_create_aafs()
2633 ns_subrevision(root_ns) = dent; in aa_create_aafs()
2636 mutex_lock_nested(&root_ns->lock, root_ns->level); in aa_create_aafs()
2637 error = __aafs_ns_mkdir(root_ns, aafs_mnt->mnt_root, ".policy", in aa_create_aafs()
2639 mutex_unlock(&root_ns->lock); in aa_create_aafs()
A Dnet.c201 label = aa_label_strn_parse(&root_ns->unconfined->label, in apparmor_secmark_init()
A Dlabel.c1635 ns = root_ns; in aa_label_snxprint()
1898 if (str == NULL || (*str == '=' && base != &root_ns->unconfined->label)) in aa_label_strn_parse()
1990 if (labels_ns(this) != root_ns) in aa_labelset_destroy()
A Dlsm.c1660 set_cred_label(cred, aa_get_label(ns_unconfined(root_ns))); in set_init_ctx()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Dfs_core.c2261 root_ns = steering->root_ns; in mlx5_get_flow_namespace()
2265 if (!root_ns) in mlx5_get_flow_namespace()
2493 root_ns = kzalloc(sizeof(*root_ns), GFP_KERNEL); in create_root_ns()
2494 if (!root_ns) in create_root_ns()
2497 root_ns->dev = steering->dev; in create_root_ns()
2499 root_ns->cmds = cmds; in create_root_ns()
2503 ns = &root_ns->ns; in create_root_ns()
2509 return root_ns; in create_root_ns()
2590 if (!steering->root_ns) in init_root_ns()
2606 steering->root_ns = NULL; in init_root_ns()
[all …]
A Deswitch_offloads_termtbl.c67 struct mlx5_flow_namespace *root_ns; in mlx5_eswitch_termtbl_create() local
70 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_eswitch_termtbl_create()
71 if (!root_ns) { in mlx5_eswitch_termtbl_create()
85 tt->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in mlx5_eswitch_termtbl_create()
A Dfs_core.h128 struct mlx5_flow_root_namespace *root_ns; member
A Deswitch_offloads.c1632 struct mlx5_flow_namespace *root_ns; in esw_create_offloads_fdb_tables() local
1645 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in esw_create_offloads_fdb_tables()
1646 if (!root_ns) { in esw_create_offloads_fdb_tables()
1651 esw->fdb_table.offloads.ns = root_ns; in esw_create_offloads_fdb_tables()
1652 err = mlx5_flow_namespace_set_mode(root_ns, in esw_create_offloads_fdb_tables()
1684 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_offloads_fdb_tables()
1699 esw->fdb_table.offloads.tc_miss_table = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_offloads_fdb_tables()
1857 mlx5_flow_namespace_set_mode(root_ns, MLX5_FLOW_STEERING_MODE_DMFS); in esw_create_offloads_fdb_tables()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Dhelper.c13 struct mlx5_flow_namespace *root_ns; in esw_acl_table_create() local
30 root_ns = mlx5_get_flow_vport_acl_namespace(dev, ns, vport->index); in esw_acl_table_create()
31 if (!root_ns) { in esw_acl_table_create()
39 acl = mlx5_create_vport_flow_table(root_ns, &ft_attr, vport_num); in esw_acl_table_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Dlegacy.c25 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_vepa_table() local
29 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_vepa_table()
30 if (!root_ns) { in esw_create_legacy_vepa_table()
39 fdb = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in esw_create_legacy_vepa_table()
76 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_fdb_table() local
88 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_fdb_table()
89 if (!root_ns) { in esw_create_legacy_fdb_table()
101 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_legacy_fdb_table()
A Dindir_table.c385 struct mlx5_flow_namespace *root_ns; in mlx5_esw_indir_table_entry_create() local
390 root_ns = mlx5_get_flow_namespace(esw->dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_esw_indir_table_entry_create()
391 if (!root_ns) in mlx5_esw_indir_table_entry_create()
403 ft = mlx5_create_flow_table(root_ns, &ft_attr); in mlx5_esw_indir_table_entry_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
A Dsample.c67 struct mlx5_flow_namespace *root_ns; in sampler_termtbl_create() local
76 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in sampler_termtbl_create()
77 if (!root_ns) { in sampler_termtbl_create()
87 tc_psample->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in sampler_termtbl_create()
/linux/security/apparmor/include/
A Dpolicy_ns.h77 extern struct aa_ns *root_ns;

Completed in 67 milliseconds