/** owning import */
struct obd_import *ps_import;
spinlock_t ps_lock;
+ /** mtime of SELinux policy file */
+ time_t ps_sepol_mtime;
+ /** next check time of SELinux policy file */
+ ktime_t ps_sepol_checknext;
+ /**
+ * SELinux policy info
+ * sepol string format is:
+ * <mode>:<policy name>:<policy version>:<policy hash>
+ */
+ char ps_sepol[LUSTRE_NODEMAP_SEPOL_LENGTH
+ + 1];
/*
* garbage collection
__u8 bsd_data[0]; /* policy-specific token */
};
-
-/*
- * lprocfs
- */
-struct proc_dir_entry;
-extern struct proc_dir_entry *sptlrpc_proc_root;
+extern struct dentry *sptlrpc_debugfs_dir;
+extern struct proc_dir_entry *sptlrpc_lprocfs_dir;
/*
* round size up to next power of 2, for slab allocation.
void sptlrpc_cli_finish_early_reply(struct ptlrpc_request *early_req);
void sptlrpc_request_out_callback(struct ptlrpc_request *req);
+int sptlrpc_get_sepol(struct ptlrpc_request *req);
/*
* exported higher interface of import & request
int sptlrpc_pack_user_desc(struct lustre_msg *msg, int offset);
int sptlrpc_unpack_user_desc(struct lustre_msg *req, int offset, int swabbed);
-
-#define CFS_CAP_CHOWN_MASK (1 << CFS_CAP_CHOWN)
-#define CFS_CAP_SYS_RESOURCE_MASK (1 << CFS_CAP_SYS_RESOURCE)
-
/** @} sptlrpc */
#endif /* _LUSTRE_SEC_H_ */