blob: d5c328452df0161acd82bd8ec295fecc00392b86 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Access vector cache interface for the security server.
3 *
4 * Author : Stephen Smalley, <sds@epoch.ncsc.mil>
5 */
6#ifndef _SELINUX_AVC_SS_H_
7#define _SELINUX_AVC_SS_H_
8
9#include "flask.h"
10
11int avc_ss_reset(u32 seqno);
12
Stephen Smalleyc6d3aaa2009-09-30 13:37:50 -040013/* Class/perm mapping support */
14struct security_class_mapping {
Chad Sellers5c458992006-11-06 12:38:16 -050015 const char *name;
Stephen Smalleyc6d3aaa2009-09-30 13:37:50 -040016 const char *perms[sizeof(u32) * 8 + 1];
Chad Sellers5c458992006-11-06 12:38:16 -050017};
18
Stephen Smalleyc6d3aaa2009-09-30 13:37:50 -040019extern struct security_class_mapping secclass_map[];
Chad Sellers5c458992006-11-06 12:38:16 -050020
James Morris7b98a582011-08-30 12:52:32 +100021/*
22 * The security server must be initialized before
23 * any labeling or access decisions can be provided.
24 */
25extern int ss_initialized;
26
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#endif /* _SELINUX_AVC_SS_H_ */
28