From: Paul Wolneykien <manowar@altlinux.org> To: devel@lists.altlinux.org Subject: Re: [devel] Как опознать клиента unix-сокета? Date: Thu, 11 Oct 2018 20:34:08 +0300 Message-ID: <9cd3150c-b271-8d9c-2bd3-ea35efd0b11c@altlinux.org> (raw) In-Reply-To: <1ad5ff8c-99b2-a541-7973-2c10416c1733@altlinux.org> 11.10.2018 16:26, Aleksei Nikiforov пишет: > Вызов getsockopt(..., SOL_SOCKET, SO_PEERCRED, ..., ...) позволяет > получит pid, uid, gid для unix-сокета. Linux-only API AFAIK. Не в бровь, а в глаз! Спасибо огромное. > 11.10.2018 16:16, Paul Wolneykien пишет: >> >> Всем привет. Есть ли простой (относительно) способ опознать клиента, >> который подключился к unix-сокету (sockaddr_un)? Интересует номер >> процесса, ну и, в идеале, имя программы. Спасибо. >> _______________________________________________ >> Devel mailing list >> Devel@lists.altlinux.org >> https://lists.altlinux.org/mailman/listinfo/devel >> > _______________________________________________ > Devel mailing list > Devel@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/devel
prev parent reply other threads:[~2018-10-11 17:34 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-10-11 13:16 Paul Wolneykien 2018-10-11 13:19 ` Pavel Vainerman 2018-10-11 13:26 ` Paul Wolneykien 2018-10-11 13:26 ` Aleksei Nikiforov 2018-10-11 17:34 ` Paul Wolneykien [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=9cd3150c-b271-8d9c-2bd3-ea35efd0b11c@altlinux.org \ --to=manowar@altlinux.org \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git