From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4680DA9B.5020501@domain.hid> Date: Tue, 26 Jun 2007 11:21:31 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <0B45E93C5FF65740AEAE690BF3848B7A4AB14C@rennsmail04.eu.thmulti.com> In-Reply-To: <0B45E93C5FF65740AEAE690BF3848B7A4AB14C@rennsmail04.eu.thmulti.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig935A2BB9BE8EB10194442FEB" Sender: jan.kiszka@domain.hid Subject: [Xenomai-core] Group-based RT caps (was: [Xenomai-help] Xenomai and mlockall) List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai-core This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig935A2BB9BE8EB10194442FEB Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hi, I'm moving this thread to xenomai-core as I have some implementation idea= =2E.. Fillod Stephane wrote: > ... > I think Johan was not asking to disable the mlockall, but to allow some= =2E > non-root user to be able to do it. He found his solution anyway, which > is worth an entry in the FAQ. >=20 > Since it is going to be a FAQ for those people in embedded business, > some > tricks to allow non-root operation of mlockall, SCHED_FIFO, etc., would= > be=20 > useful. For example, you may hack the commoncap in linux/security/,=20 > or a better solution would be to rely on realtime-lsm[1][2], thanks to = > the audio folks. >=20 > [1] http://sourceforge.net/projects/realtime-lsm/ > [2] http://lwn.net/Articles/110346/ >=20 I think we could and should incorporate such a feature into the nucleus. There is already code in xnshadow_map playing with cap_effective, but that happens too late. Instead, we should establish a group-based access control just like rt-lsm (the other knobs of that module are either irrelevant for Xenomai (mlock=3D0) or broken security-wise (any=3D1)) and= raise the required caps for a process that belongs to the specified group, likely when an Xenomai interface gets attached by that process. Comments? Volunteer coders...? Jan --------------enig935A2BB9BE8EB10194442FEB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGgNqbniDOoMHTA+kRArfBAJ0Z4ep9PfvPzisR4BshlEsU3uWPcQCfb9dN I/vRV8r3VyGTDfkWFEM2V6E= =mhl7 -----END PGP SIGNATURE----- --------------enig935A2BB9BE8EB10194442FEB--