<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; SELinux постоянно ворчит]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=30984&amp;type=atom" />
	<updated>2013-12-21T19:32:52Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=30984</id>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=383781#p383781" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Cruiser78 пишет:</cite><blockquote><p>Куда делся checkmodule? Или откуда его надыбать?</p></blockquote></div><p>установить checkpolicy</p>]]></content>
			<author>
				<name><![CDATA[alexfinn]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25867</uri>
			</author>
			<updated>2013-12-21T19:32:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=383781#p383781</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=383764#p383764" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kirillov3798 пишет:</cite><blockquote><p>Если пытаться выполнить действия, то:<br /></p><div class="codebox"><pre><code>[root@SemenPC ~]# grep hl_linux /var/log/audit/audit.log | audit2allow -M mypol
compilation failed:
sh: /usr/bin/checkmodule: Нет такого файла или каталога
[root@SemenPC ~]# semodule -i mypol.pp
semodule:  Failed on mypol.pp!
[root@SemenPC ~]# </code></pre></div><p>Может кто знает что не так?</p></blockquote></div><p>Оживлю тему. А именно - отключить SELinux продлем нет. Вопрос не в этом. <br />А вот зачем предлагать в настройках SELinux то, что нереализуется? Куда делся checkmodule? Или откуда его надыбать? Как корректно настроить SELinux в F-19? Да и в F-20 теже ойцы...</p>]]></content>
			<author>
				<name><![CDATA[Cruiser78]]></name>
				<uri>https://linuxforum.ru/profile.php?id=631</uri>
			</author>
			<updated>2013-12-21T16:47:33Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=383764#p383764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=369496#p369496" />
			<content type="html"><![CDATA[<p>Все разобрался</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2013-10-12T07:25:32Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=369496#p369496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=369492#p369492" />
			<content type="html"><![CDATA[<p><strong>redix</strong>, спасибо</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2013-10-12T07:20:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=369492#p369492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=369475#p369475" />
			<content type="html"><![CDATA[<p><strong>kirillov3798</strong>, в файле /etc/selinux/config. Читай, в самом файле всё описано.</p>]]></content>
			<author>
				<name><![CDATA[redix]]></name>
				<uri>https://linuxforum.ru/profile.php?id=29254</uri>
			</author>
			<updated>2013-10-12T06:40:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=369475#p369475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=369473#p369473" />
			<content type="html"><![CDATA[<p><strong>redix</strong>, как его отключить <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> ?</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2013-10-12T06:34:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=369473#p369473</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=369472#p369472" />
			<content type="html"><![CDATA[<p><strong>kirillov3798</strong>, зачем? У себя всегда отключаю, живой, как видишь.&nbsp; <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></content>
			<author>
				<name><![CDATA[redix]]></name>
				<uri>https://linuxforum.ru/profile.php?id=29254</uri>
			</author>
			<updated>2013-10-12T06:31:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=369472#p369472</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=369470#p369470" />
			<content type="html"><![CDATA[<p>Но он же ведь нужен, вроде...</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2013-10-12T06:29:32Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=369470#p369470</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=369469#p369469" />
			<content type="html"><![CDATA[<p><strong>kirillov3798</strong>, отключи его, да и все дела. ( прости меня <strong>Vascom</strong>&nbsp; <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" />&nbsp; )</p>]]></content>
			<author>
				<name><![CDATA[redix]]></name>
				<uri>https://linuxforum.ru/profile.php?id=29254</uri>
			</author>
			<updated>2013-10-12T06:28:11Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=369469#p369469</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SELinux постоянно ворчит]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=369468#p369468" />
			<content type="html"><![CDATA[<p>Ворчит на Steam и на Wine и бог знает на что еще.<br />Вот что пишет во время игры в HL1:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>SELinux is preventing /home/semen/.local/share/Steam/SteamApps/common/Half-Life/hl_linux from using the execheap access on a process.

*****  Plugin allow_execheap (53.1 confidence) suggests  *********************

If вы считаете, что /home/semen/.local/share/Steam/SteamApps/common/Half-Life/hl_linux не должен создавать соответствие для памяти кучи, если она является записываемой и запускаемой
Then следует создать отчет об ошибке. Это обращение представляет риск безопасности.
Do
о проблеме сообщите администратору.

*****  Plugin catchall_boolean (42.6 confidence) suggests  *******************

If вы хотите выполнить следующее: allow selinuxuser to execheap
Then you must tell SELinux about this by enabling the &#039;selinuxuser_execheap&#039; boolean.
Дополнительная документация на &#039;None&#039; ман странице.
Do
setsebool -P selinuxuser_execheap 1

*****  Plugin catchall (5.76 confidence) suggests  ***************************

If вы считаете, что hl_linux следует разрешить доступ execheap к процессам с типом unconfined_t по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep hl_linux /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Objects                 [ process ]
Source                        hl_linux
Source Path                   /home/semen/.local/share/Steam/SteamApps/common
                              /Half-Life/hl_linux
Port                          &lt;Неизвестно&gt;
Host                          SemenPC
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.8.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     SemenPC
Platform                      Linux SemenPC 3.11.3-201.fc19.x86_64 #1 SMP Thu
                              Oct 3 00:47:03 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-10-12 14:02:49 KRAT
Last Seen                     2013-10-12 14:09:53 KRAT
Local ID                      0f0fca0e-1554-4441-b55a-376d8292e6ef

Raw Audit Messages
type=AVC msg=audit(1381558193.891:476): avc:  denied  { execheap } for  pid=3513 comm=&quot;hl_linux&quot; scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process


type=SYSCALL msg=audit(1381558193.891:476): arch=i386 syscall=capget success=no exit=EACCES a0=97e0000 a1=c000 a2=7 a3=ffa4efec items=0 ppid=3510 pid=3513 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=hl_linux exe=/home/semen/.local/share/Steam/SteamApps/common/Half-Life/hl_linux subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)

Hash: hl_linux,unconfined_t,unconfined_t,process,execheap</code></pre></div></div></div><p>Если пытаться выполнить действия, то:<br /></p><div class="codebox"><pre><code>[root@SemenPC ~]# grep hl_linux /var/log/audit/audit.log | audit2allow -M mypol
compilation failed:
sh: /usr/bin/checkmodule: Нет такого файла или каталога
[root@SemenPC ~]# semodule -i mypol.pp
semodule:  Failed on mypol.pp!
[root@SemenPC ~]# </code></pre></div><p>Может кто знает что не так?</p>]]></content>
			<author>
				<name><![CDATA[kirillov3798]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31059</uri>
			</author>
			<updated>2013-10-12T06:24:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=369468#p369468</id>
		</entry>
</feed>
