Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 19:01:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_tun_dev_open

Proto:static int selinux_tun_dev_open(void *security)

Type:int

Parameter:

TypeParameterName
void *security
5511  tunsec = security
5512  sid = get the subjective security ID of the current task
5515  err = avc_has_perm - Check permissions and perform any appropriate auditing
5518  If err Then Return err
5520  err = avc_has_perm - Check permissions and perform any appropriate auditing
5523  If err Then Return err
5525  SID for the tun device sockets = sid
5527  Return 0