af_unix/scm: fix whitespace errors
Fix whitespace/formatting errors. Cc: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org Cc: David S. Miller <davem@davemloft.net> Cc: Eric Dumazet <edumazet@google.com> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Simon Horman <horms@kernel.org> Cc: Leon Romanovsky <leon@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Christian Brauner <brauner@kernel.org> Cc: Kuniyuki Iwashima <kuniyu@google.com> Cc: Lennart Poettering <mzxreary@0pointer.de> Cc: Luca Boccassi <bluca@debian.org> Cc: David Rheinsberg <david@readahead.eu> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> Link: https://lore.kernel.org/20250703222314.309967-5-aleksandr.mikhalitsyn@canonical.com Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
30580dc96a
commit
2b9996417e
|
|
@ -69,7 +69,7 @@ static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_co
|
||||||
static __inline__ void scm_set_cred(struct scm_cookie *scm,
|
static __inline__ void scm_set_cred(struct scm_cookie *scm,
|
||||||
struct pid *pid, kuid_t uid, kgid_t gid)
|
struct pid *pid, kuid_t uid, kgid_t gid)
|
||||||
{
|
{
|
||||||
scm->pid = get_pid(pid);
|
scm->pid = get_pid(pid);
|
||||||
scm->creds.pid = pid_vnr(pid);
|
scm->creds.pid = pid_vnr(pid);
|
||||||
scm->creds.uid = uid;
|
scm->creds.uid = uid;
|
||||||
scm->creds.gid = gid;
|
scm->creds.gid = gid;
|
||||||
|
|
@ -78,7 +78,7 @@ static __inline__ void scm_set_cred(struct scm_cookie *scm,
|
||||||
static __inline__ void scm_destroy_cred(struct scm_cookie *scm)
|
static __inline__ void scm_destroy_cred(struct scm_cookie *scm)
|
||||||
{
|
{
|
||||||
put_pid(scm->pid);
|
put_pid(scm->pid);
|
||||||
scm->pid = NULL;
|
scm->pid = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline__ void scm_destroy(struct scm_cookie *scm)
|
static __inline__ void scm_destroy(struct scm_cookie *scm)
|
||||||
|
|
|
||||||
|
|
@ -1929,7 +1929,7 @@ static void unix_destruct_scm(struct sk_buff *skb)
|
||||||
struct scm_cookie scm;
|
struct scm_cookie scm;
|
||||||
|
|
||||||
memset(&scm, 0, sizeof(scm));
|
memset(&scm, 0, sizeof(scm));
|
||||||
scm.pid = UNIXCB(skb).pid;
|
scm.pid = UNIXCB(skb).pid;
|
||||||
if (UNIXCB(skb).fp)
|
if (UNIXCB(skb).fp)
|
||||||
unix_detach_fds(&scm, skb);
|
unix_detach_fds(&scm, skb);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue