blob: 1d35a02e174cc03c61a09f7f9584aef03dc67556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
* SELinux interface.
*
* Copyright (c) 2020-2022 The strace developers.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#ifndef STRACE_SECONTEXT_H
# define STRACE_SECONTEXT_H
# include "defs.h"
void qualify_secontext(const char *const str);
# ifdef ENABLE_SECONTEXT
enum secontext_bits {
/* Display full context instead of type only */
SECONTEXT_FULL,
/* Check for context mismatch */
SECONTEXT_MISMATCH,
NUMBER_OF_SECONTEXT_BITS
};
extern struct number_set *secontext_set;
void selinux_printfdcon(pid_t pid, int fd);
void selinux_printfilecon(struct tcb *tcp, const char *path);
void selinux_printpidcon(struct tcb *tcp);
# else
static inline void selinux_printfdcon(pid_t pid, int fd) {}
static inline void selinux_printfilecon(struct tcb *tcp, const char *path) {}
static inline void selinux_printpidcon(struct tcb *tcp) {}
# endif /* ENABLE_SECONTEXT */
#endif /* !STRACE_SECONTEXT_H */
|