git: 92b5b97cb089 - main - mac: s/0/false/ in macros denoting probe enablement
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Aug 2022 22:12:25 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=92b5b97cb089677df5f2c72ab8fb44a34fd21ae9 commit 92b5b97cb089677df5f2c72ab8fb44a34fd21ae9 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-08-11 22:11:24 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-08-11 22:11:24 +0000 mac: s/0/false/ in macros denoting probe enablement No functional changes. --- sys/security/mac/mac_framework.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h index 78a991fe10fe..51dbcf909cc4 100644 --- a/sys/security/mac/mac_framework.h +++ b/sys/security/mac/mac_framework.h @@ -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