FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora SELinux Support

 
 
LinkBack Thread Tools
 
Old 07-11-2012, 03:10 PM
Daniel J Walsh
 
Default Out of Memory & Relabeling

-----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.
>
> 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/

iEYEARECAAYFAk/9l38ACgkQrlYvE4MpobPlhgCgsIiCkFAIh8HHFhmy8eAzVNQe
s2EAn0tyS2qCTRM5Gp/PvD7hGlGKP8hv
=J/L9
-----END PGP SIGNATURE-----
--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
 
Old 07-11-2012, 03:36 PM
 
Default Out of Memory & Relabeling

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
 
Old 07-11-2012, 03:59 PM
Daniel J Walsh
 
Default 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/

iEYEARECAAYFAk/9osgACgkQrlYvE4MpobO1ZACgzIJf/xizrU86iqrN19DiVLE5
fo4AoNy+WDkPximj0UBE60qxj8CAzMjo
=LqT7
-----END PGP SIGNATURE-----
--
selinux mailing list
selinux@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/selinux
 

Thread Tools




All times are GMT. The time now is 09:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org