mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 03:27:46 +08:00
Jail and capability mode for shm_rename;
add audit support for shm_rename Co-mingling two things here: * Addressing some feedback from Konstantin and Kyle re: jail, capability mode, and a few other things * Adding audit support as promised. The audit support change includes a partial refresh of OpenBSM from upstream, where the change to add shm_rename has already been accepted. Matthew doesn't plan to work on refreshing anything else to support audit for those new event types. Submitted by: Matthew Bryan <matthew.bryan@isilon.com> Reviewed by: kib Relnotes: Yes Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D22083
This commit is contained in:
parent
12fb531a70
commit
0c854dd6d1
@ -118,6 +118,15 @@
|
||||
#define MAP_ALIGNMENT_SHIFT 24
|
||||
#define MAP_ALIGNMENT_MASK MAP_ALIGNED(0xff)
|
||||
#define MAP_ALIGNED_SUPER MAP_ALIGNED(1) /* align on a superpage */
|
||||
|
||||
/*
|
||||
* Flags provided to shm_rename
|
||||
*/
|
||||
/* Don't overwrite dest, if it exists */
|
||||
#define SHM_RENAME_NOREPLACE (1 << 0)
|
||||
/* Atomically swap src and dest */
|
||||
#define SHM_RENAME_EXCHANGE (1 << 1)
|
||||
|
||||
#endif /* __BSD_VISIBLE */
|
||||
|
||||
#if __POSIX_VISIBLE >= 199309
|
||||
@ -133,14 +142,6 @@
|
||||
*/
|
||||
#define MAP_FAILED ((void *)-1)
|
||||
|
||||
/*
|
||||
* Flags provided to shm_rename
|
||||
*/
|
||||
/* Don't overwrite dest, if it exists */
|
||||
#define SHM_RENAME_NOREPLACE (1 << 0)
|
||||
/* Atomically swap src and dest */
|
||||
#define SHM_RENAME_EXCHANGE (1 << 1)
|
||||
|
||||
/*
|
||||
* msync() flags
|
||||
*/
|
||||
@ -272,11 +273,11 @@ int posix_madvise(void *, size_t, int);
|
||||
int mlockall(int);
|
||||
int munlockall(void);
|
||||
int shm_open(const char *, int, mode_t);
|
||||
int shm_rename(const char *, const char *, int);
|
||||
int shm_unlink(const char *);
|
||||
#endif
|
||||
#if __BSD_VISIBLE
|
||||
int memfd_create(const char *, unsigned int);
|
||||
int shm_rename(const char *, const char *, int);
|
||||
#endif
|
||||
__END_DECLS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user