• Paul Moore's avatar
    SELinux: Add network port SID cache · 3e112172
    Paul Moore authored
    Much like we added a network node cache, this patch adds a network port
    cache. The design is taken almost completely from the network node cache
    which in turn was taken from the network interface cache.  The basic idea is
    to cache entries in a hash table based on protocol/port information.  The
    hash function only takes the port number into account since the number of
    different protocols in use at any one time is expected to be relatively
    small.
    Signed-off-by: default avatarPaul Moore <paul.moore@hp.com>
    Acked-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
    Signed-off-by: default avatarJames Morris <jmorris@namei.org>
    3e112172
objsec.h 3.87 KB