~ubuntu-branches/debian/lenny/libsepol/lenny

« back to all changes in this revision

Viewing changes to include/sepol/policydb/mls_types.h

  • Committer: Bazaar Package Importer
  • Author(s): Russell Coker
  • Date: 2008-07-13 00:26:51 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080713002651-ww7wa3wm1x30dyk3
Tags: 2.0.30-2
Added exec_prefix to libselinux.pc.
Closes: #489724

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        mls_level_init(level);
71
71
}
72
72
 
73
 
static inline int mls_level_eq(struct mls_level *l1, struct mls_level *l2)
 
73
static inline int mls_level_eq(const struct mls_level *l1, const struct mls_level *l2)
74
74
{
75
75
        return ((l1->sens == l2->sens) && ebitmap_cmp(&l1->cat, &l2->cat));
76
76
}
77
77
 
78
 
static inline int mls_level_dom(struct mls_level *l1, struct mls_level *l2)
 
78
static inline int mls_level_dom(const struct mls_level *l1, const struct mls_level *l2)
79
79
{
80
80
        return ((l1->sens >= l2->sens) && ebitmap_contains(&l1->cat, &l2->cat));
81
81
}