Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 138a868

Browse files
rafal-krypacschaufler
authored andcommitted
smack: Add missing logging in bidirectional UDS connect check
During UDS connection check, both sides are checked for write access to the other side. But only the first check is performed with audit support. The second one didn't produce any audit logs. This simple patch fixes that. Signed-off-by: Rafal Krypa <[email protected]>
1 parent 69f287a commit 138a868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/smack/smack_lsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3333,7 +3333,7 @@ static int smack_unix_stream_connect(struct sock *sock,
33333333
if (rc == 0) {
33343334
okp = osp->smk_out;
33353335
skp = ssp->smk_in;
3336-
rc = smk_access(okp, skp, MAY_WRITE, NULL);
3336+
rc = smk_access(okp, skp, MAY_WRITE, &ad);
33373337
rc = smk_bu_note("UDS connect", okp, skp,
33383338
MAY_WRITE, rc);
33393339
}

0 commit comments

Comments
 (0)