質問編集履歴
4
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
お助けください。
|
4
4
|
|
5
5
|
###前提・実現したいこと
|
6
|
-
古いphp(元は4系→5.3移植して稼働中)からphp 7.1に移植しようとして動作確認していますが、
|
6
|
+
古いphp(元は4系→5.3移植して稼働中)からphp 7.1を使う新サーバーに移植しようとして、vmware上ゲストOSである自分で構築しているCentOS7.3上で動作確認していますが、
|
7
7
|
なぜかunlink出来ない事態に遭遇していて困っています。
|
8
8
|
|
9
9
|
###発生している問題・エラーメッセージ
|
3
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,6 +26,11 @@
|
|
26
26
|
Policy deny_unknown status: allowed
|
27
27
|
Max kernel policy version: 28
|
28
28
|
```
|
29
|
+
/var/log/audit/audit.log に気になる記述が。
|
30
|
+
```
|
31
|
+
type=AVC msg=audit(1509011982.095:483): avc: denied { write } for pid=2189 comm="httpd" name="input" dev="dm-0" ino=68788307 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:httpd_sys_content_t:s0 tclass=dir
|
32
|
+
type=SYSCALL msg=audit(1509011982.095:483): arch=c000003e syscall=87 success=no exit=-13 a0=7fad02e5b978 a1=1 a2=7fad02e5b97f a3=7fad11ee30f0 items=0 ppid=990 pid=2189 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm="httpd" exe="/usr/sbin/httpd" subj=system_u:system_r:httpd_t:s0 key=(null)
|
33
|
+
```
|
29
34
|
|
30
35
|
###試したこと
|
31
36
|
/var/www/html/ 以下のオーナーをapacheにし、
|
2
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,6 +15,16 @@
|
|
15
15
|
```
|
16
16
|
# getenforce
|
17
17
|
Enforcing
|
18
|
+
# sestatus
|
19
|
+
SELinux status: enabled
|
20
|
+
SELinuxfs mount: /sys/fs/selinux
|
21
|
+
SELinux root directory: /etc/selinux
|
22
|
+
Loaded policy name: targeted
|
23
|
+
Current mode: enforcing
|
24
|
+
Mode from config file: enforcing
|
25
|
+
Policy MLS status: enabled
|
26
|
+
Policy deny_unknown status: allowed
|
27
|
+
Max kernel policy version: 28
|
18
28
|
```
|
19
29
|
|
20
30
|
###試したこと
|
1
情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -11,6 +11,11 @@
|
|
11
11
|
```
|
12
12
|
Warning: unlink(../../~~~/042017101900003.dat): Permission denied in /var/www/html/~~~/file2db.php on line 2713
|
13
13
|
```
|
14
|
+
この表示からするとSELinuxも稼働中でしょうか。
|
15
|
+
```
|
16
|
+
# getenforce
|
17
|
+
Enforcing
|
18
|
+
```
|
14
19
|
|
15
20
|
###試したこと
|
16
21
|
/var/www/html/ 以下のオーナーをapacheにし、
|