ntp issue
I was playing with ntp_admin() and i figured out that /etc/ntp.conf is labeled net_conf_t. What is the rationale behind that decision, I dont see it?
Whatever the reason for this is, its not implemented properly. The net_conf_t type should not be used in the ntp.fc file.
Instead, if one really wants /etc/ntp.conf to be net_conf_t, then move the fc spec to sysnetwork.fc
But again i dont see why this file has to be net_conf_t. Its not good for ntp_admin either. I wouldnt want my ntp_admin to have access to net_conf_t files just so that he is able to manage ntp config files
Quoted 3 lines · Dominick Grift
I was playing with
ntp_admin()and i figured out that/etc/ntp.confis labelednet_conf_t. What is the rationale behind that decision, I dont see it?
I'd say its a mistake.
Quoted 9 lines
Whatever the reason for this is, its not implemented properly. The
net_conf_ttype should not be used in the ntp.fc file.Instead, if one really wants
/etc/ntp.confto benet_conf_t, then move the fc spec to sysnetwork.fcBut again i dont see why this file has to be
net_conf_t. Its not good forntp_admineither. I wouldnt want myntp_adminto have access tonet_conf_tfiles just so that he is able to manage ntp config files
I'm fine with a patch that makes a ntp_conf_t.
Signature · 3 lines
Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com
Quoted 3 lines · Dominick Grift
I was playing with
ntp_admin()and i figured out that/etc/ntp.confis labelednet_conf_t. What is the rationale behind that decision, I dont see it?
If net_conf_t is also used in ntp.te then it sounds like a security flaw.
Otherwise, it's a typo, which however might not be unlikely to lead to a security flaw in the future.
Quoted 5 lines
Whatever the reason for this is, its not implemented properly. The
net_conf_ttype should not be used in the ntp.fc file.Instead, if one really wants
/etc/ntp.confto benet_conf_t, then move the fc spec to sysnetwork.fc
There should be its own type.
Quoted 3 lines
But again i dont see why this file has to be
net_conf_t. Its not good forntp_admineither. I wouldnt want myntp_adminto have access tonet_conf_tfiles just so that he is able to manage ntp config files
Regards,
Guido
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 22 lines · Guido Trentalancia
Quoted 3 lines · Dominick Grift
I was playing with
ntp_admin()and i figured out that/etc/ntp.confis labelednet_conf_t. What is the rationale behind that decision, I dont see it?If
net_conf_tis also used in ntp.te then it sounds like a security flaw.Otherwise, it's a typo, which however might not be unlikely to lead to a security flaw in the future.
Quoted 5 lines
Whatever the reason for this is, its not implemented properly. The
net_conf_ttype should not be used in the ntp.fc file.Instead, if one really wants
/etc/ntp.confto benet_conf_t, then move the fc spec to sysnetwork.fcThere should be its own type.
Quoted 3 lines
But again i dont see why this file has to be
net_conf_t. Its not good forntp_admineither. I wouldnt want myntp_adminto have access tonet_conf_tfiles just so that he is able to manage ntp config files
Quoted 6 lines
Regards,
Guido _______________________________________________ refpolicy mailing list refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy
I agree it should not be net_conf_t, but I think we will need to make sure that NetworkManager_t can configure it, as it was most likely changed to this label when a network configuration tool needed to manage it. Now that we have filename transition rules we can label /etc/resolv.conf and /etc/ntp.conf differently and allow network manage ment tools to manage and maintain the labels. -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlApAM8ACgkQrlYvE4MpobOgaQCg69H6oJeitKhiw+K/n3oL39iO f6cAoKFcmSXEJKL4GUF1DL59XmIXHUs3
=GaiW
-----END PGP SIGNATURE-----
Quoted 30 lines · Daniel J Walsh
Quoted 22 lines · Guido Trentalancia
Quoted 3 lines · Dominick Grift
I was playing with
ntp_admin()and i figured out that/etc/ntp.confis labelednet_conf_t. What is the rationale behind that decision, I dont see it?If
net_conf_tis also used in ntp.te then it sounds like a security flaw.Otherwise, it's a typo, which however might not be unlikely to lead to a security flaw in the future.
Quoted 5 lines
Whatever the reason for this is, its not implemented properly. The
net_conf_ttype should not be used in the ntp.fc file.Instead, if one really wants
/etc/ntp.confto benet_conf_t, then move the fc spec to sysnetwork.fcThere should be its own type.
Quoted 3 lines
But again i dont see why this file has to be
net_conf_t. Its not good forntp_admineither. I wouldnt want myntp_adminto have access tonet_conf_tfiles just so that he is able to manage ntp config filesQuoted 6 lines
Regards,
Guido _______________________________________________ refpolicy mailing list refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicy
Quoted 5 lines
I agree it should not be
net_conf_t, but I think we will need to make sure thatNetworkManager_tcan configure it, as it was most likely changed to this label when a network configuration tool needed to manage it. Now that we have filename transition rules we can label/etc/resolv.confand/etc/ntp.confdifferently and allow network manage ment tools to manage and maintain the labels.
That is what i thought as well but git blame shows otherwise. This has been there ever since the first iteration of this module.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 41 lines · Dominick Grift
Quoted 31 lines · Daniel J Walsh
Quoted 23 lines · Guido Trentalancia
Quoted 3 lines · Dominick Grift
I was playing with
ntp_admin()and i figured out that/etc/ntp.confis labelednet_conf_t. What is the rationale behind that decision, I dont see it?If
net_conf_tis also used in ntp.te then it sounds like a security flaw.Otherwise, it's a typo, which however might not be unlikely to lead to a security flaw in the future.
Quoted 5 lines
Whatever the reason for this is, its not implemented properly. The
net_conf_ttype should not be used in the ntp.fc file.Instead, if one really wants
/etc/ntp.confto benet_conf_t, then move the fc spec to sysnetwork.fcThere should be its own type.
Quoted 3 lines
But again i dont see why this file has to be
net_conf_t. Its not good forntp_admineither. I wouldnt want myntp_adminto have access tonet_conf_tfiles just so that he is able to manage ntp config filesQuoted 6 lines
Regards,
Guido _______________________________________________ refpolicy mailing list refpolicy at oss.tresys.com
http://oss.tresys.com/mailman/listinfo/refpolicyQuoted 6 lines
I agree it should not be
net_conf_t, but I think we will need to make sure thatNetworkManager_tcan configure it, as it was most likely changed to this label when a network configuration tool needed to manage it. Now that we have filename transition rules we can label/etc/resolv.confand/etc/ntp.confdifferently and allow network manage ment tools to manage and maintain the labels.
Quoted 4 lines
That is what i thought as well but git blame shows otherwise. This has been there ever since the first iteration of this module.
Ok. Lets try it out and see if NetworkManager starts to complain... -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlApBjkACgkQrlYvE4MpobOeRQCg0D30zUW1QA9fdiJ0Umkbgoi9 PyEAnjLB7N3Wvup1CWUgariyzUiD632q
=kkPV
-----END PGP SIGNATURE-----
Quoted 28 lines · Daniel J Walsh
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 24 lines · Guido Trentalancia
Quoted 3 lines · Dominick Grift
I was playing with
ntp_admin()and i figured out that/etc/ntp.confis labelednet_conf_t. What is the rationale behind that decision, I dont see it?If
net_conf_tis also used in ntp.te then it sounds like a security flaw.Otherwise, it's a typo, which however might not be unlikely to lead to a security flaw in the future.
Quoted 5 lines
Whatever the reason for this is, its not implemented properly. The
net_conf_ttype should not be used in the ntp.fc file.Instead, if one really wants
/etc/ntp.confto benet_conf_t, then move the fc spec to sysnetwork.fcThere should be its own type.
Quoted 3 lines
But again i dont see why this file has to be
net_conf_t. Its not good forntp_admineither. I wouldnt want myntp_adminto have access tonet_conf_tfiles just so that he is able to manage ntp config filesRegards,
Quoted 7 lines
Quoted 1 line
Guido
I agree it should not be
net_conf_t, but I think we will need to make sure thatNetworkManager_tcan configure it, as it was most likely changed to this label when a network configuration tool needed to manage it. Now that we have filename transition rules we can label/etc/resolv.confand/etc/ntp.confdifferently and allow network manage ment tools to manage and maintain the labels.
In my opinion, this is a good point, but it's only really needed in certain conditions (multiuser X mode). So, definitely, not on servers running at init level 3 or, say, kiosks running single-mode.
Ideally, tunable policy should be used to restore the above compatibility with NetworkManager on the desktops (and maybe those servers) that actually use it.
On Fedora, you could then even toggle such boolean on/off upon installation/removal of the NM package (%postinstall, %preinstall spec sections).
But having a stricter policy for safer servers should probably be the priority in my opinion.
Regards,
Guido