1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00

mac: s/0/false/ in macros denoting probe enablement

No functional changes.
This commit is contained in:
Mateusz Guzik 2022-08-11 22:11:24 +00:00
parent f73e4f6c58
commit 92b5b97cb0

View File

@ -155,7 +155,7 @@ int mac_ifnet_check_transmit_impl(struct ifnet *ifp, struct mbuf *m);
#ifdef MAC
extern bool mac_ifnet_check_transmit_fp_flag;
#else
#define mac_ifnet_check_transmit_fp_flag 0
#define mac_ifnet_check_transmit_fp_flag false
#endif
#define mac_ifnet_check_transmit_enabled() __predict_false(mac_ifnet_check_transmit_fp_flag)
static inline int
@ -173,7 +173,7 @@ void mac_ifnet_create_mbuf_impl(struct ifnet *ifp, struct mbuf *m);
#ifdef MAC
extern bool mac_ifnet_create_mbuf_fp_flag;
#else
#define mac_ifnet_create_mbuf_fp_flag 0
#define mac_ifnet_create_mbuf_fp_flag false
#endif
#define mac_ifnet_create_mbuf_enabled() __predict_false(mac_ifnet_create_mbuf_fp_flag)
static inline void
@ -252,7 +252,7 @@ int mac_pipe_check_poll_impl(struct ucred *cred, struct pipepair *pp);
#ifdef MAC
extern bool mac_pipe_check_poll_fp_flag;
#else
#define mac_pipe_check_poll_fp_flag 0
#define mac_pipe_check_poll_fp_flag false
#endif
#define mac_pipe_check_poll_enabled() __predict_false(mac_pipe_check_poll_fp_flag)
static inline int
@ -267,7 +267,7 @@ mac_pipe_check_poll(struct ucred *cred, struct pipepair *pp)
#ifdef MAC
extern bool mac_pipe_check_stat_fp_flag;
#else
#define mac_pipe_check_stat_fp_flag 0
#define mac_pipe_check_stat_fp_flag false
#endif
#define mac_pipe_check_stat_enabled() __predict_false(mac_pipe_check_stat_fp_flag)
int mac_pipe_check_stat(struct ucred *cred, struct pipepair *pp);
@ -323,7 +323,7 @@ int mac_priv_check_impl(struct ucred *cred, int priv);
#ifdef MAC
extern bool mac_priv_check_fp_flag;
#else
#define mac_priv_check_fp_flag 0
#define mac_priv_check_fp_flag false
#endif
#define mac_priv_check_enabled() __predict_false(mac_priv_check_fp_flag)
static inline int
@ -339,7 +339,7 @@ int mac_priv_grant_impl(struct ucred *cred, int priv);
#ifdef MAC
extern bool mac_priv_grant_fp_flag;
#else
#define mac_priv_grant_fp_flag 0
#define mac_priv_grant_fp_flag false
#endif
#define mac_priv_grant_enabled() __predict_false(mac_priv_grant_fp_flag)
static inline int
@ -507,7 +507,7 @@ int mac_vnode_check_lookup_impl(struct ucred *cred, struct vnode *dvp,
#ifdef MAC
extern bool mac_vnode_check_lookup_fp_flag;
#else
#define mac_vnode_check_lookup_fp_flag 0
#define mac_vnode_check_lookup_fp_flag false
#endif
#define mac_vnode_check_lookup_enabled() __predict_false(mac_vnode_check_lookup_fp_flag)
static inline int
@ -526,7 +526,7 @@ int mac_vnode_check_mmap_impl(struct ucred *cred, struct vnode *vp, int prot,
#ifdef MAC
extern bool mac_vnode_check_mmap_fp_flag;
#else
#define mac_vnode_check_mmap_fp_flag 0
#define mac_vnode_check_mmap_fp_flag false
#endif
#define mac_vnode_check_mmap_enabled() __predict_false(mac_vnode_check_mmap_fp_flag)
static inline int
@ -545,7 +545,7 @@ int mac_vnode_check_open_impl(struct ucred *cred, struct vnode *vp,
#ifdef MAC
extern bool mac_vnode_check_open_fp_flag;
#else
#define mac_vnode_check_open_fp_flag 0
#define mac_vnode_check_open_fp_flag false
#endif
#define mac_vnode_check_open_enabled() __predict_false(mac_vnode_check_open_fp_flag)
static inline int
@ -568,7 +568,7 @@ extern bool mac_vnode_check_poll_fp_flag;
int mac_vnode_check_poll(struct ucred *active_cred,
struct ucred *file_cred, struct vnode *vp);
#else
#define mac_vnode_check_poll_fp_flag 0
#define mac_vnode_check_poll_fp_flag false
static inline int
mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred,
struct vnode *vp)
@ -582,7 +582,7 @@ int mac_vnode_check_readlink_impl(struct ucred *cred, struct vnode *dvp);
#ifdef MAC
extern bool mac_vnode_check_readlink_fp_flag;
#else
#define mac_vnode_check_readlink_fp_flag 0
#define mac_vnode_check_readlink_fp_flag false
#endif
#define mac_vnode_check_readlink_enabled() __predict_false(mac_vnode_check_readlink_fp_flag)
static inline int
@ -621,7 +621,7 @@ int mac_vnode_check_stat_impl(struct ucred *active_cred,
#ifdef MAC
extern bool mac_vnode_check_stat_fp_flag;
#else
#define mac_vnode_check_stat_fp_flag 0
#define mac_vnode_check_stat_fp_flag false
#endif
#define mac_vnode_check_stat_enabled() __predict_false(mac_vnode_check_stat_fp_flag)
static inline int
@ -640,7 +640,7 @@ int mac_vnode_check_read_impl(struct ucred *active_cred,
#ifdef MAC
extern bool mac_vnode_check_read_fp_flag;
#else
#define mac_vnode_check_read_fp_flag 0
#define mac_vnode_check_read_fp_flag false
#endif
#define mac_vnode_check_read_enabled() __predict_false(mac_vnode_check_read_fp_flag)
static inline int
@ -659,7 +659,7 @@ int mac_vnode_check_write_impl(struct ucred *active_cred,
#ifdef MAC
extern bool mac_vnode_check_write_fp_flag;
#else
#define mac_vnode_check_write_fp_flag 0
#define mac_vnode_check_write_fp_flag false
#endif
#define mac_vnode_check_write_enabled() __predict_false(mac_vnode_check_write_fp_flag)
static inline int