services.c (454d972c24e6efce3d7b07a97f1ad18b14845de9) services.c (b0c636b99997c8594da6a46e166ce4fcf6956fda)
1/*
2 * Implementation of the security services.
3 *
4 * Authors : Stephen Smalley, <sds@epoch.ncsc.mil>
5 * James Morris <jmorris@redhat.com>
6 *
7 * Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com>
8 *

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

56#include "netlabel.h"
57#include "xfrm.h"
58#include "ebitmap.h"
59
60extern void selnl_notify_policyload(u32 seqno);
61unsigned int policydb_loaded_version;
62
63int selinux_policycap_netpeer;
1/*
2 * Implementation of the security services.
3 *
4 * Authors : Stephen Smalley, <sds@epoch.ncsc.mil>
5 * James Morris <jmorris@redhat.com>
6 *
7 * Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com>
8 *

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

56#include "netlabel.h"
57#include "xfrm.h"
58#include "ebitmap.h"
59
60extern void selnl_notify_policyload(u32 seqno);
61unsigned int policydb_loaded_version;
62
63int selinux_policycap_netpeer;
64int selinux_policycap_openperm;
64
65/*
66 * This is declared in avc.c
67 */
68extern const struct selinux_class_perm selinux_class_perm;
69
70static DEFINE_RWLOCK(policy_rwlock);
71#define POLICY_RDLOCK read_lock(&policy_rwlock)

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

1303 kfree(s);
1304 goto out;
1305}
1306
1307static void security_load_policycaps(void)
1308{
1309 selinux_policycap_netpeer = ebitmap_get_bit(&policydb.policycaps,
1310 POLICYDB_CAPABILITY_NETPEER);
65
66/*
67 * This is declared in avc.c
68 */
69extern const struct selinux_class_perm selinux_class_perm;
70
71static DEFINE_RWLOCK(policy_rwlock);
72#define POLICY_RDLOCK read_lock(&policy_rwlock)

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

1304 kfree(s);
1305 goto out;
1306}
1307
1308static void security_load_policycaps(void)
1309{
1310 selinux_policycap_netpeer = ebitmap_get_bit(&policydb.policycaps,
1311 POLICYDB_CAPABILITY_NETPEER);
1312 selinux_policycap_openperm = ebitmap_get_bit(&policydb.policycaps,
1313 POLICYDB_CAPABILITY_OPENPERM);
1311}
1312
1313extern void selinux_complete_init(void);
1314static int security_preserve_bools(struct policydb *p);
1315
1316/**
1317 * security_load_policy - Load a security policy configuration.
1318 * @data: binary policy data

--- 1349 unchanged lines hidden ---
1314}
1315
1316extern void selinux_complete_init(void);
1317static int security_preserve_bools(struct policydb *p);
1318
1319/**
1320 * security_load_policy - Load a security policy configuration.
1321 * @data: binary policy data

--- 1349 unchanged lines hidden ---