blob: bb1ec801bdfe1dda2984b27da8ecef52c2715755 [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
Eric Parise392feb2008-04-22 17:46:08 -040013struct av_perm_to_string {
Chad Sellers5c458992006-11-06 12:38:16 -050014 u16 tclass;
15 u32 value;
16 const char *name;
17};
18
Eric Parise392feb2008-04-22 17:46:08 -040019struct av_inherit {
Chad Sellers5c458992006-11-06 12:38:16 -050020 const char **common_pts;
21 u32 common_base;
Eric Paris76f7ba32009-01-02 17:40:06 -050022 u16 tclass;
Chad Sellers5c458992006-11-06 12:38:16 -050023};
24
Eric Parise392feb2008-04-22 17:46:08 -040025struct selinux_class_perm {
Chad Sellers5c458992006-11-06 12:38:16 -050026 const struct av_perm_to_string *av_perm_to_string;
27 u32 av_pts_len;
Chad Sellers5c458992006-11-06 12:38:16 -050028 u32 cts_len;
Eric Paris76f7ba32009-01-02 17:40:06 -050029 const char **class_to_string;
Chad Sellers5c458992006-11-06 12:38:16 -050030 const struct av_inherit *av_inherit;
31 u32 av_inherit_len;
32};
33
Linus Torvalds1da177e2005-04-16 15:20:36 -070034#endif /* _SELINUX_AVC_SS_H_ */
35