forked from mirrors/linux
		
	The definition IPCMNI is only used in ipc/util.h and ipc/util.c. So there is no reason to keep it in a header file that the whole kernel can see. Move it into util.h to simplify future maintenance. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			607 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			607 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
#ifndef _LINUX_IPC_H
 | 
						|
#define _LINUX_IPC_H
 | 
						|
 | 
						|
#include <linux/spinlock.h>
 | 
						|
#include <linux/uidgid.h>
 | 
						|
#include <linux/rhashtable.h>
 | 
						|
#include <uapi/linux/ipc.h>
 | 
						|
#include <linux/refcount.h>
 | 
						|
 | 
						|
/* used by in-kernel data structures */
 | 
						|
struct kern_ipc_perm {
 | 
						|
	spinlock_t	lock;
 | 
						|
	bool		deleted;
 | 
						|
	int		id;
 | 
						|
	key_t		key;
 | 
						|
	kuid_t		uid;
 | 
						|
	kgid_t		gid;
 | 
						|
	kuid_t		cuid;
 | 
						|
	kgid_t		cgid;
 | 
						|
	umode_t		mode;
 | 
						|
	unsigned long	seq;
 | 
						|
	void		*security;
 | 
						|
 | 
						|
	struct rhash_head khtnode;
 | 
						|
 | 
						|
	struct rcu_head rcu;
 | 
						|
	refcount_t refcount;
 | 
						|
} ____cacheline_aligned_in_smp __randomize_layout;
 | 
						|
 | 
						|
#endif /* _LINUX_IPC_H */
 |