expect
Quoted 4 lines
Due to what I believe to be bugs in expect, the new
open_init_ptyprogram will not work correctly with old versions of expect. Version 5.38.0 works fine, version 5.32.2 is broken. I don't know when the bug was fixed exactly.
I've backed out the open_init_pty changes to our internal copy ofrun_init. I'd rather not have the base run_init functionality dependent
on a particular version of expect, and I'm not even sure that it is wise to depend on having expect installed at all.
--
Stephen Smalley, NSA
[email protected]
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Stephen D. Smalley
Quoted 4 lines
Due to what I believe to be bugs in expect, the new
open_init_ptyprogram will not work correctly with old versions of expect. Version 5.38.0 works fine, version 5.32.2 is broken. I don't know when the bug was fixed exactly.I've backed out the
open_init_ptychanges to our internal copy ofrun_init. I'd rather not have the baserun_initfunctionality dependent
on a particular version of expect, and I'm not even sure that it is wise to depend on having expect installed at all.
I will not do the same for my Debian packages.
I can see the benefit in having two options available for users in this case, as some smaller devices such as PDAs may not have space for expect. But Debian is a heavy distribution primarily designed for workstations and servers. Debian works well on laptops too but is not designed to scale down any further than that. So I think that there is no reason not to depend on expect.
I have made my Debian packages depend on the appropriate version of expect so you can just install the packages and be sure that the right things are automatically installed.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 20 lines · Russell Coker
Quoted 9 lines · Stephen D. Smalley
Quoted 4 lines
Due to what I believe to be bugs in expect, the new
open_init_ptyprogram will not work correctly with old versions of expect. Version 5.38.0 works fine, version 5.32.2 is broken. I don't know when the bug was fixed exactly.I've backed out the
open_init_ptychanges to our internal copy ofrun_init. I'd rather not have the baserun_initfunctionality dependent
on a particular version of expect, and I'm not even sure that it is wise to depend on having expect installed at all.I will not do the same for my Debian packages.
I can see the benefit in having two options available for users in this case, as some smaller devices such as PDAs may not have space for expect. But Debian is a heavy distribution primarily designed for workstations and servers. Debian works well on laptops too but is not designed to scale down any further than that. So I think that there is no reason not to depend on expect.
Quoted 3 lines
I have made my Debian packages depend on the appropriate version of expect so you can just install the packages and be sure that the right things are automatically installed.
IMHO not the best solution, since the existance of "expect" depends entirely on local policy. At our site, it is not to be installed without a LOT of justification first, and only with policy wavers on an individual basis.
Making it mandatory for the system to function would mean that the Debian distribution will not be permitted. This isn't a major problem for us, at least, since we have standardized on RH.
Signature · 10 lines
------------------------------------------------------------------------- Jesse I Pollard, II Email: [email protected] Any opinions expressed are solely my own. -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
I've had a new idea while writing this message and put it at the top. If someone in .gov/.mil can make sure this gets to Steve I'd appreciate it (his server doesn't seem to like my server).
Allowing daemons the tty access could probably be addressed in another way. If we had a separate role and domain for starting daemons that could be entered with newrole (which then removes the need for run_init as the role would not have permission to do anything other than restarting daemons) we could then allow all daemons read/write/ioctl access to the terminal for it. Then if we deny the daemons read access to /dev (wherever possible) and /dev/pts (always) then after you exit the shell that newrole ran (relabelling your tty) the daemon won't be able to access your tty or open other ttys.
This would also mean that if you have several daemons to restart (EG an LDAP error forces me to restart everything that uses LDAP - POP, mail server, nscd, etc) you could just type the commands in instead of having to enter your password many times.
I believe that this isn't as good as my solution with expect, and it isn't something that can be done in a hurry either.
Quoted 8 lines · Jesse Pollard
Quoted 3 lines
I have made my Debian packages depend on the appropriate version of expect so you can just install the packages and be sure that the right things are automatically installed.
IMHO not the best solution, since the existance of "expect" depends entirely on local policy. At our site, it is not to be installed without a LOT of justification first, and only with policy wavers on an individual basis.
Expect is in the main section of Debian. It's a fully supported program, not something that has to be separately installed.
Not using expect requires another solution to the problem of daemons wanting to write startup messages to terminals. The CVS policy has no solution to this problem, thus in a default install the administrator is UNABLE to restart many popular daemons without rebooting the server!!!
The situation in the CVS might be suitable for your use, but it is not suitable for the majority of Debian users. SE Linux is currently not getting significant use in Debian because the ratio of effort to result is not percieved as being good enough. Removing expect significantly increases the effort and thus makes the situation worse.
In my judgement the solution I have adopted is the best for my use, my clients, and every Debian administrator I know.
If you have a better solution then I'd like to hear of it!
Currently IMHO there are two options, what I have done with expect, and allowing all daemons read/write access to the administrator tty.
Quoted 3 lines
Making it mandatory for the system to function would mean that the Debian distribution will not be permitted. This isn't a major problem for us, at least, since we have standardized on RH.
Which means of course there's no reason for me to change on your account.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 8 lines · Russell Coker
Allowing daemons the tty access could probably be addressed in another way. If we had a separate role and domain for starting daemons that could be entered with newrole (which then removes the need for
run_initas the role would not have permission to do anything other than restarting daemons) we could then allow all daemons read/write/ioctl access to the terminal for it. Then if we deny the daemons read access to /dev (wherever possible) and/dev/pts(always) then after you exit the shell that newrole ran (relabelling your tty) the daemon won't be able to access your tty or open other ttys.
I like this idea a lot. It would make a real-life admin job much, much easier. It's not just that sometimes you have several daemons to (re)start, it is during development that you easily restart a given service a couple dozen times. I know I considered the password request a nuisance after the 5th or so time.
Quoted 2 lines
I believe that this isn't as good as my solution with expect, and it isn't something that can be done in a hurry either.
Actually, it may turn out to be a better solution, mostly because expect is no longer required (and a couple of the recent postings here have shown just why that may be a good thing).
Signature · 8 lines
PGP/GPG key: http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
[having a session with the right context to run daemons rather than start-stop-daemon for each one]
Quoted 5 lines
I like this idea a lot. It would make a real-life admin job much, much easier. It's not just that sometimes you have several daemons to (re)start, it is during development that you easily restart a given service a couple dozen times. I know I considered the password request a nuisance after the 5th or so time.
Good point. When doing development you tend to have a dozen x-terms open at once anyway, so reserving one for starting and stopping daemons should be OK.
Although this is when having labelled X windows would be good.
Quoted 6 lines
Quoted 2 lines
I believe that this isn't as good as my solution with expect, and it isn't something that can be done in a hurry either.
Actually, it may turn out to be a better solution, mostly because expect is no longer required (and a couple of the recent postings here have shown just why that may be a good thing).
The only real problem we have with expect IMHO is the problem I discovered where some daemons don't start because the parent exits too fast. I expect that I'll solve that soon though.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Russell Coker
Quoted 4 lines
easier. It's not just that sometimes you have several daemons to (re)start, it is during development that you easily restart a given service a couple dozen times. I know I considered the password request a nuisance after the 5th or so time.
Good point. When doing development you tend to have a dozen x-terms open at once anyway, so reserving one for starting and stopping daemons should be OK.
Although this is when having labelled X windows would be good.
Actually, most of my development work is done remotely, and so I guess for many other people, so X isn't a factor on the server-side.
Quoted 6 lines
Quoted 2 lines
expect is no longer required (and a couple of the recent postings here have shown just why that may be a good thing).
The only real problem we have with expect IMHO is the problem I discovered where some daemons don't start because the parent exits too fast. I expect that I'll solve that soon though.
Actually, it's more a problem of "do I really want Tk on this machine, just so that I can run SELinx?" - it is a considerably extension of the dependencies. Maybe I'm too old-school, but I cringe everything I select a simple packet and it wants to install two dozen libraries and programming languages in dependencies.
Or maybe that attitude is not for the SELinux world anymore. With a regular system, the less stuff you have on it the more secure you can feel (less possibilities for problems). On an SELinux machine, though, that isn't (or at least shouldn't) be true anymore.
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · Tom
Actually, it's more a problem of "do I really want Tk on this machine, just so that I can run SELinx?" - it is a considerably extension of the dependencies. Maybe I'm too old-school, but I cringe everything I select a simple packet and it wants to install two dozen libraries and programming languages in dependencies.
Good point, I've just checked it out, on Debian this involves 3.1M of disk space for Expect and TK. It hadn't been an issue for me as I already had other packages depending on TK on all my machines.
Maybe I'll have to go back to writeing such a program in C...
Quoted 4 lines
Or maybe that attitude is not for the SELinux world anymore. With a regular system, the less stuff you have on it the more secure you can feel (less possibilities for problems). On an SELinux machine, though, that isn't (or at least shouldn't) be true anymore.
I don't think that having expect present causes any security problems anyway.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.