Re: 1.4.0-rc3 check_comp_rc: rc_role wrong?

Bernhard Seibold <[email protected]>
Newsgroups gmane.linux.rsbac
Message-ID <[email protected]>
On Di, 2008-11-18 at 16:52 +0100, Amon Ott wrote:
> On Monday 17 November 2008 19:32, Bernhard Seibold wrote:
> > User 1000 is rc_role 4. No errors with 2.6.26.7 with 1.4.0-rc2 (and
> > your one-line ipv6 patch).
> >
> > 0000009047|check_comp_rc(): pid 2299432064 (gweather-applet), owner
> > 1000, rc_role 0, NETOBJ rc_type 0, request CREATE -> NOT_GRANTED!
> 
> The pid is complete rubbish here. Just corrected output at several 
> places. I have attached a patch, can you please retry with it?

The PIDs are now ok, but of course the problem persists. This was logged
while starting Apache (in Softmode, by user 1000 from a "sudo -s"
shell), with debug_adf_auth and debug_adf_rc turned on:

0000002834|rsbac_set_attr(): Trying to set attribute for process 0!
0000002835|rsbac_adf_set_attr_rc: rsbac_set_attr() for rc_role returned
error!
0000002836|rsbac_set_attr(): Trying to set attribute for process 0!
0000002837|rsbac_adf_set_attr_auth: rsbac_set_attr() for auth_may_setuid
returned error!
0000002838|rsbac_set_attr(): Trying to set attribute for process 0!
0000002839|rsbac_adf_set_attr_cap(): rsbac_get_attr() for cap_ld_env
returned error!
0000002840|rsbac_set_attr(): Trying to set attribute for process 0!
0000002841|rsbac_adf_set_attr_cap(): rsbac_set_attr() for
cap_process_hiding returned error!
0000002842|rsbac_set_attr(): Trying to set attribute for process 0!
0000002843|rsbac_adf_set_attr(): rsbac_set_attr() for audit_uid returned
error!
0000002844|rsbac_adf_set_attr(): request CLONE, pid 18530, uid 0, audit
uid 1000, target_type PROCESS, tid 18530, new_target_type PROCESS,
new_tid 0, attr none, value 0, error -1004
0000002845|do_fork() [sys_fork(), sys_clone()]: rsbac_adf_set_attr()
returned error!
0000002846|rsbac_adf_request(): request CHANGE_OWNER, pid 18537, ppid
18530, prog_name apache2, prog_file /usr/sbin/apache2, uid 0,
target_type PROCESS, tid 18537, attr owner, value 33, result NOT_GRANTED
(Softmode) by AUTH

The setuid should have been granted:

secoff@blob:~$ auth_set_cap FD get /usr/sbin/apache2
33 
secoff@blob:~$ 


Bernhard

_______________________________________________
rsbac mailing list
[email protected]
http://www.rsbac.org/mailman/listinfo/rsbac
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkkrIEIACgkQYHTgXE+fjpnmuQCcCJeXr0dt9DVdNFzlnm38uzy9
mSoAn1Q5dV9gAi8q/EFwhXSPZ4GPpTOc
=D118
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.