smack.h (b17103a8b8ae9c9ecc5e1e6501b1478ee2dc6fe4) smack.h (bbd3662a834813730912a58efb44dd6df6d952e6)
1/*
2 * Copyright (C) 2007 Casey Schaufler <casey@schaufler-ca.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, version 2.
7 *
8 * Author:

--- 322 unchanged lines hidden (view full) ---

331extern int smack_cipso_direct;
332extern int smack_cipso_mapped;
333extern struct smack_known *smack_net_ambient;
334extern struct smack_known *smack_syslog_label;
335#ifdef CONFIG_SECURITY_SMACK_BRINGUP
336extern struct smack_known *smack_unconfined;
337#endif
338extern int smack_ptrace_rule;
1/*
2 * Copyright (C) 2007 Casey Schaufler <casey@schaufler-ca.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, version 2.
7 *
8 * Author:

--- 322 unchanged lines hidden (view full) ---

331extern int smack_cipso_direct;
332extern int smack_cipso_mapped;
333extern struct smack_known *smack_net_ambient;
334extern struct smack_known *smack_syslog_label;
335#ifdef CONFIG_SECURITY_SMACK_BRINGUP
336extern struct smack_known *smack_unconfined;
337#endif
338extern int smack_ptrace_rule;
339extern struct lsm_blob_sizes smack_blob_sizes;
339
340extern struct smack_known smack_known_floor;
341extern struct smack_known smack_known_hat;
342extern struct smack_known smack_known_huh;
343extern struct smack_known smack_known_star;
344extern struct smack_known smack_known_web;
345
346extern struct mutex smack_known_lock;

--- 6 unchanged lines hidden (view full) ---

353extern struct mutex smack_onlycap_lock;
354extern struct list_head smack_onlycap_list;
355
356#define SMACK_HASH_SLOTS 16
357extern struct hlist_head smack_known_hash[SMACK_HASH_SLOTS];
358
359static inline struct task_smack *smack_cred(const struct cred *cred)
360{
340
341extern struct smack_known smack_known_floor;
342extern struct smack_known smack_known_hat;
343extern struct smack_known smack_known_huh;
344extern struct smack_known smack_known_star;
345extern struct smack_known smack_known_web;
346
347extern struct mutex smack_known_lock;

--- 6 unchanged lines hidden (view full) ---

354extern struct mutex smack_onlycap_lock;
355extern struct list_head smack_onlycap_list;
356
357#define SMACK_HASH_SLOTS 16
358extern struct hlist_head smack_known_hash[SMACK_HASH_SLOTS];
359
360static inline struct task_smack *smack_cred(const struct cred *cred)
361{
361 return cred->security;
362 return cred->security + smack_blob_sizes.lbs_cred;
362}
363
364/*
365 * Is the directory transmuting?
366 */
367static inline int smk_inode_transmutable(const struct inode *isp)
368{
369 struct inode_smack *sip = isp->i_security;

--- 146 unchanged lines hidden ---
363}
364
365/*
366 * Is the directory transmuting?
367 */
368static inline int smk_inode_transmutable(const struct inode *isp)
369{
370 struct inode_smack *sip = isp->i_security;

--- 146 unchanged lines hidden ---