Bug 967072 - SELinux is preventing /usr/libexec/nm-l2tp-service from 'search' accesses on the directory dbus.
Summary: SELinux is preventing /usr/libexec/nm-l2tp-service from 'search' accesses on ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ac2ffa6946d4b8b12d3177f86ec...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-24 15:41 UTC by Фукидид
Modified: 2014-02-05 23:10 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-05 23:10:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Фукидид 2013-05-24 15:41:38 UTC
Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.2-200.fc18.x86_64
type:           libreport

Comment 1 Dominick Grift 2013-05-24 17:34:47 UTC
Ok i did some testing on irc and this is what i got so far:


optional_policy(`
dbus_system_bus_client(l2tpd_t)
dbus_connect_system_bus(l2tpd_t)
optional_policy(`
networkmanager_dbus_chat(l2tpd_t)
')
')

can_exec(l2tpd_t, l2tpd_exec_t)

allow l2tpd_t ipsec_mgmt_var_run_t:file read_file_perms;

files_etc_filetrans(lt2pd_t, ipsec_key_file_t, file)
allow lt2pd_t ipsec_key_file_t:file manage_file_perms;

ipsec_domtrans_mgmt(l2tpd_t)

allow pppd_t l2tpd_var_run_t:file read_file_perms;

allow NetworkManager_t l2tpd_t:process { signal sigkill };

/var/run/pluto/ipsec\.info -- gen_context(system_u:object_r:ipsec_mgmt_var_run_t, s0)
/var/run/pluto/ipsec_setup\.pid -- gen_context(system_u:object_r:ipsec_mgmt_var_run_t, s0)

Change this file context specification in ipsec.fc:

/etc/ipsec\.secrets.*  -- gen_context(system_u:object_r:ipsec_key_file_t,s0)

(we need the .* to catch ipsec.secrets files with random suffixes)

Comment 2 Dominick Grift 2013-05-24 19:33:28 UTC
(In reply to Dominick Grift from comment #1)

> files_etc_filetrans(lt2pd_t, ipsec_key_file_t, file)
> allow lt2pd_t ipsec_key_file_t:file manage_file_perms;


Some typos here : its l2tpd_t obiously (not lt2pd_t)

Comment 3 Dominick Grift 2013-05-24 20:17:47 UTC
heres some more:

gen_require(` type pppd_t; ')
gen_require(` class dbus send_msg; ')
allow pppd_t l2tpd_t:dbus send_msg;
allow l2tpd_t pppd_t:dbus send_msg;
gen_require(` type ipsec_mgmt_t, l2tpd_var_run_t; ')
read_files_pattern(ipsec_mgmt_t, l2tpd_var_run_t, l2tpd_var_run_t)

Comment 4 Dominick Grift 2013-05-25 09:33:13 UTC
And another one:

allow NetworkManager_t l2tpd_t:process signull;

Comment 5 Miroslav Grepl 2013-05-28 07:42:12 UTC
I wish to avoid rules like


files_etc_filetrans(lt2pd_t, ipsec_key_file_t, file)
allow lt2pd_t ipsec_key_file_t:file manage_file_perms;

Do you have AVC msgs for these rules?

Comment 6 Fedora End Of Life 2013-12-21 15:31:52 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2014-02-05 23:10:11 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.