Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jul 2011 23:54:25 -0700 (PDT)
From:      exorcistkiller <exorcistkiller@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   priv_check() question
Message-ID:  <1309762465080-4549149.post@n5.nabble.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1309762465080-4549149.post>