Home
last modified time | relevance | path

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

/linux/security/apparmor/
H A Dpolicy_ns.c29 struct aa_ns *root_ns; variable
370 root_ns = alloc_ns(NULL, "root"); in aa_alloc_root_ns()
371 if (!root_ns) in aa_alloc_root_ns()
376 destroy_ns(root_ns); in aa_alloc_root_ns()
377 aa_free_ns(root_ns); in aa_alloc_root_ns()
381 root_ns->unconfined->ns = aa_get_ns(root_ns); in aa_alloc_root_ns()
391 struct aa_ns *ns = root_ns; in aa_free_root_ns()
393 root_ns = NULL; in aa_free_root_ns()
H A Dsecid.c64 len = aa_label_asxprint(&cp->context, root_ns, label, in apparmor_label_to_secctx()
67 len = aa_label_snxprint(NULL, 0, root_ns, label, flags); in apparmor_label_to_secctx()
100 label = aa_label_strn_parse(&root_ns->unconfined->label, secdata, in apparmor_secctx_to_secid()
H A Daudit.c122 if (profile->ns != root_ns) { in audit_pre()
131 aa_label_xaudit(ab, root_ns, label, FLAG_VIEW_SUBNS, in audit_pre()
239 rule->label = aa_label_parse(&root_ns->unconfined->label, rulestr, in aa_audit_rule_init()
H A Dapparmorfs.c2741 ns_subload(root_ns) = dent; in aa_create_aafs()
2747 ns_subreplace(root_ns) = dent; in aa_create_aafs()
2753 ns_subremove(root_ns) = dent; in aa_create_aafs()
2759 ns_subrevision(root_ns) = dent; in aa_create_aafs()
2762 mutex_lock_nested(&root_ns->lock, root_ns->level); in aa_create_aafs()
2763 error = __aafs_ns_mkdir(root_ns, aafs_mnt->mnt_root, ".policy", in aa_create_aafs()
2765 mutex_unlock(&root_ns->lock); in aa_create_aafs()
H A Dnet.c349 label = aa_label_strn_parse(&root_ns->unconfined->label, in apparmor_secmark_init()
H A Dlabel.c1625 ns = root_ns; in aa_label_snxprint()
1873 base != &root_ns->unconfined->label)) in aa_label_strn_parse()
1965 if (labels_ns(this) != root_ns) in aa_labelset_destroy()
H A Dlsm.c2257 set_cred_label(cred, aa_get_label(ns_unconfined(root_ns))); in set_init_ctx()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dfs_hws_pools.c80 struct mlx5_flow_root_namespace *root_ns; in mlx5_fs_pr_bulk_action_create() local
84 root_ns = mlx5_get_root_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_fs_pr_bulk_action_create()
85 if (!root_ns || root_ns->mode != MLX5_FLOW_STEERING_MODE_HMFS) in mlx5_fs_pr_bulk_action_create()
88 ctx = root_ns->fs_hws_context.hws_ctx; in mlx5_fs_pr_bulk_action_create()
258 struct mlx5_flow_root_namespace *root_ns; in mlx5_fs_hws_mh_bulk_create() local
266 root_ns = mlx5_get_root_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_fs_hws_mh_bulk_create()
267 if (!root_ns || root_ns->mode != MLX5_FLOW_STEERING_MODE_HMFS) in mlx5_fs_hws_mh_bulk_create()
270 ctx = root_ns->fs_hws_context.hws_ctx; in mlx5_fs_hws_mh_bulk_create()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_core.c372 static void cleanup_root_ns(struct mlx5_flow_root_namespace *root_ns);
2700 struct mlx5_flow_root_namespace *root_ns; in mlx5_get_flow_namespace() local
2726 root_ns = steering->fdb_root_ns; in mlx5_get_flow_namespace()
2732 root_ns = steering->egress_root_ns; in mlx5_get_flow_namespace()
2736 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace()
2740 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace()
2744 root_ns = steering->rdma_tx_root_ns; in mlx5_get_flow_namespace()
2748 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace()
2752 root_ns = steering->rdma_tx_root_ns; in mlx5_get_flow_namespace()
2756 root_ns = steering->rdma_rx_root_ns; in mlx5_get_flow_namespace()
[all …]
H A Deswitch_offloads_termtbl.c69 struct mlx5_flow_namespace *root_ns; in mlx5_eswitch_termtbl_create() local
72 root_ns = mlx5_get_flow_namespace(dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_eswitch_termtbl_create()
73 if (!root_ns) { in mlx5_eswitch_termtbl_create()
87 tt->termtbl = mlx5_create_auto_grouped_flow_table(root_ns, &ft_attr); in mlx5_eswitch_termtbl_create()
H A Dfs_core.h133 struct mlx5_flow_root_namespace *root_ns; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dhelper.c13 struct mlx5_flow_namespace *root_ns; in esw_acl_table_create() local
30 root_ns = mlx5_get_flow_vport_namespace(dev, ns, vport->index); in esw_acl_table_create()
31 if (!root_ns) { in esw_acl_table_create()
40 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/
H A Dlegacy.c26 struct mlx5_flow_namespace *root_ns; in esw_create_legacy_vepa_table() local
30 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_vepa_table()
31 if (!root_ns) { in esw_create_legacy_vepa_table()
40 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()
100 fdb = mlx5_create_flow_table(root_ns, &ft_attr); in esw_create_legacy_fdb_table()
H A Dindir_table.c252 struct mlx5_flow_namespace *root_ns; in mlx5_esw_indir_table_entry_create() local
257 root_ns = mlx5_get_flow_namespace(esw->dev, MLX5_FLOW_NAMESPACE_FDB); in mlx5_esw_indir_table_entry_create()
258 if (!root_ns) in mlx5_esw_indir_table_entry_create()
270 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/
H A Dpost_meter.c63 struct mlx5_flow_namespace *root_ns; in mlx5e_post_meter_table_create() local
65 root_ns = mlx5_get_flow_namespace(priv->mdev, ns_type); in mlx5e_post_meter_table_create()
66 if (!root_ns) { in mlx5e_post_meter_table_create()
76 return mlx5_create_flow_table(root_ns, &ft_attr); in mlx5e_post_meter_table_create()
H 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/
H A Dpolicy_ns.h80 extern struct aa_ns *root_ns;