On 07/11/2012 10:58 AM, Jorge Fábregas wrote:
> On 07/11/2012 09:43 AM, Daniel J Walsh wrote:
>> Most likely we will just close this, since we do not support this small
>> of memory system.
>
> I thought about that but considering that Red Hat is heaviliy promoting the
> "cloud" (along with virtualization) I thought it was worth to report it.
>
> I bet there are thousands of VMs running out there with or less than 256MB
> of memory.
>
> -- Jorge -- selinux mailing list selinux@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux
>
>
I guess we could check to see if there is enough memory to run genhomedircon,
else just exit immediately.
Since all genhomedircon is a script that runs semodule -Bn got any good ideas
how to check the amount of memory on the machine?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
Daniel J Walsh wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 07/11/2012 10:58 AM, Jorge Fábregas wrote:
>> On 07/11/2012 09:43 AM, Daniel J Walsh wrote:
>>> Most likely we will just close this, since we do not support this small
>>> of memory system.
<snip>
> I guess we could check to see if there is enough memory to run
> genhomedircon, else just exit immediately.
>
> Since all genhomedircon is a script that runs semodule -Bn got any good
> ideas how to check the amount of memory on the machine?
free | awk '{ if ( NR == 2 ) { if ( $4 > somenum ) { exit 0; } else { exit
1; }}}'
mark
--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
07-11-2012, 03:59 PM
Daniel J Walsh
Out of Memory & Relabeling
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/11/2012 11:36 AM, m.roth@5-cent.us wrote:
> free | awk '{ if ( NR == 2 ) { if ( $4 > somenum ) { exit 0; } else { exit
> 1; }}}'
How about something like:
#!/bin/sh
free | awk '{ if ( NR == 2 ) { if ( $4 < 25000 ) { exit 22; }}}'
/usr/sbin/semodule -Bn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/