From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 4 07:12:34 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C9C3106564A for ; Mon, 4 Jul 2011 07:12:34 +0000 (UTC) (envelope-from exorcistkiller@gmail.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id 4BE588FC0A for ; Mon, 4 Jul 2011 07:12:34 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Qdd33-0003Ak-2p for freebsd-hackers@freebsd.org; Sun, 03 Jul 2011 23:54:25 -0700 Date: Sun, 3 Jul 2011 23:54:25 -0700 (PDT) From: exorcistkiller To: freebsd-hackers@freebsd.org Message-ID: <1309762465080-4549149.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: priv_check() question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 07:12:34 -0000 Hi! I am taking a FreeBSD course this summer and I'm doing a homework. A new system call uidkill() is to be added. uidkill(uid_t uid, int signum) sends signal specified by signum to all processes owned by uid, excluding the calling process itself. I'm almost done, however I get stuck with priv_check(). If the calling process is trying to send signal to processes owned by others, permission should be denied. My implementation simply uses an if (p->p_ucred->cr_uid == ksi.ksi_uid) to deny it, however priv_check() is required. My question is: what privilege a process should have to send signal to processes owned by others? PRIV_SIGNAL_DIFFCRED? -- View this message in context: http://freebsd.1045724.n5.nabble.com/priv-check-question-tp4549149p4549149.html Sent from the freebsd-hackers mailing list archive at Nabble.com.