1 /* SPDX-License-Identifier: LGPL-2.1+ */
9 static char *nop_process_label_get(struct lsm_ops
*ops
, pid_t pid
)
14 static char *nop_process_label_get_at(struct lsm_ops
*ops
, int fd_pid
)
19 static int nop_process_label_set(struct lsm_ops
*ops
, const char *label
, struct lxc_conf
*conf
,
25 static int nop_enabled(struct lsm_ops
*ops
)
30 static int nop_keyring_label_set(struct lsm_ops
*ops
, const char *label
)
35 static int nop_prepare(struct lsm_ops
*ops
, struct lxc_conf
*conf
, const char *lxcpath
)
40 static void nop_cleanup(struct lsm_ops
*ops
, struct lxc_conf
*conf
, const char *lxcpath
)
44 static int nop_process_label_fd_get(struct lsm_ops
*ops
, pid_t pid
, bool on_exec
)
49 static int nop_process_label_set_at(struct lsm_ops
*ops
, int label_fd
, const char *label
, bool on_exec
)
54 static struct lsm_ops nop_ops
= {
60 .aa_mount_features_enabled
= -1,
61 .aa_parser_available
= -1,
62 .aa_supports_unix
= -1,
63 .cleanup
= nop_cleanup
,
64 .enabled
= nop_enabled
,
65 .keyring_label_set
= nop_keyring_label_set
,
66 .prepare
= nop_prepare
,
67 .process_label_fd_get
= nop_process_label_fd_get
,
68 .process_label_get
= nop_process_label_get
,
69 .process_label_set
= nop_process_label_set
,
70 .process_label_get_at
= nop_process_label_get_at
,
71 .process_label_set_at
= nop_process_label_set_at
,
74 struct lsm_ops
*lsm_nop_ops_init(void)