亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1486 | 回復(fù): 2
打印 上一主題 下一主題

[系統(tǒng)管理] SELinux 的提示恢復(fù)“./resolv.conf'” ?而且源和目標(biāo)都不一樣啊! [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2013-10-02 01:50 |只看該作者 |倒序瀏覽
本帖最后由 skysky1752 于 2013-10-02 02:07 編輯

SELinux 的提示“restorecon -v './resolv.conf'”,
路徑應(yīng)該在這里吧: /etc/resolv.conf 。
不過用這個路徑 :restorecon -v '/etc/resolv.conf' 后,文件是這樣的:
lrwxrwxrwx  root root root : object_r:etc_t              /etc/resolv.conf
這個和 Source Context ,Target Context 都不一樣!  誰解答一下!


全文如下:

Allowing Access:

Sometimes labeling problems can cause SELinux denials. You could try to restore
the default system file context for ./resolv.conf,

restorecon -v './resolv.conf'

If this does not work, there is currently no automatic way to allow this access.
Instead, you can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi)
against this package.

Additional Information:

Source Context                system_u:system_r:avahi_t
Target Context                system_ubject_r:pppd_etc_rw_t
Target Objects                ./resolv.conf [ file ]
Source                        avahi-daemon
Source Path                   /usr/sbin/avahi-daemon
Port                          <Unknown>
Host                          ***
Source RPM Packages           avahi-0.6.16-10.el5_6
Target RPM Packages           
Policy RPM                    selinux-policy-2.4.6-327.el5
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   catchall_file

Alert Count                   2
First Seen                    Tue Oct  1 23:43:36 2013
Last Seen                     Wed Oct  2 00:13:13 2013
Local ID                      5f264a71-ef51-4287-992a-999deac7a486
Line Numbers                  

Raw Audit Messages            

host=*** type=AVC msg=audit(1380643993.965:9): avc:  denied  { read } for  pid=3092 comm="avahi-daemon" name="resolv.conf" dev=hda3 ino=686372 scontext=system_u:system_r:avahi_t:s0 tcontext=system_ubject_r:pppd_etc_rw_t:s0 tclass=file

host=*** type=SYSCALL msg=audit(1380643993.965:9): arch=40000003 syscall=5 success=no exit=-13 a0=805a4dc a1=0 a2=1 a3=1 items=0 ppid=3091 pid=3092 auid=4294967295 uid=70 gid=70 euid=70 suid=70 fsuid=70 egid=70 sgid=70 fsgid=70 tty=(none) ses=4294967295 comm="avahi-daemon" exe="/usr/sbin/avahi-daemon" subj=system_u:system_r:avahi_t:s0 key=(null)



LOG 如下:

Oct  1 23:43:23 www setroubleshoot: SELinux is preventing cupsd (cupsd_t) "read" to ./resolv.conf (pppd_etc_rw_t). For complete SELinux messages. run sealert -l 4fffdda7-a189-4f03-ac01-84138cdb9f3e
Oct  1 23:43:23 www setroubleshoot: SELinux is preventing cupsd (cupsd_t) "getattr" to /etc/ppp/resolv.conf (pppd_etc_rw_t). For complete SELinux messages. run sealert -l 2e2ddce2-7780-42b4-8c2e-56d834dcc0f2

Oct  1 23:43:36 www setroubleshoot: SELinux is preventing avahi-daemon (avahi_t) "read" to ./resolv.conf (pppd_etc_rw_t). For complete SELinux messages. run sealert -l 5f264a71-ef51-4287-992a-999deac7a486
Oct  1 23:43:36 www setroubleshoot: SELinux is preventing avahi-daemon (avahi_t) "getattr" to /etc/ppp/resolv.conf (pppd_etc_rw_t). For complete SELinux messages. run sealert -l 79e9a365-a897-4879-a8b7-711647efdbc5

論壇徽章:
381
CU十二周年紀念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大;照
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大;照
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
2 [報告]
發(fā)表于 2013-10-02 08:30 |只看該作者
運行 sealert -l 4fffdda7-a189-4f03-ac01-84138cdb9f3e能看到selinux的信息

論壇徽章:
0
3 [報告]
發(fā)表于 2013-10-02 16:19 |只看該作者
回復(fù) 2# chenyx


    運行l(wèi)og里面的那4個sealert提供的操作都一樣,為:restorecon -v './resolv.conf'。不知道為什么!
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP