ipc/smack: Tidy up from the change in type of the ipc security hooks
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 24 Mar 2018 04:56:19 +0000 (23:56 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 27 Mar 2018 20:53:57 +0000 (15:53 -0500)
commit0d79cbf83be07bb38a1224f47fd0e2b163310442
treeb9f0ebb92dbd66ecf8cff677e028f8067600061b
parent50ab44b1c5d1b13305ce8acb74c8e50e0dcbaedc
ipc/smack: Tidy up from the change in type of the ipc security hooks

Rename the variables shp, sma, msq to isp. As that is how the code already
refers to those variables.

Collapse smack_of_shm, smack_of_sem, and smack_of_msq into smack_of_ipc,
as the three functions had become completely identical.

Collapse smack_shm_alloc_security, smack_sem_alloc_security and
smack_msg_queue_alloc_security into smack_ipc_alloc_security as the three
functions had become identical.

Collapse smack_shm_free_security, smack_sem_free_security and
smack_msg_queue_free_security into smack_ipc_free_security as the
three functions had become identical.

Requested-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
security/smack/smack_lsm.c