Search found 267 matches

by agriz
2016/08/23 01:47:53
Forum: CentOS 7 - General Support
Topic: Selinux Policy Allow custom shell script
Replies: 12
Views: 8258

Re: Selinux Policy Allow custom shell script

How do i fix it. Please tell me
by agriz
2016/08/22 17:14:22
Forum: CentOS 7 - General Support
Topic: Selinux Policy Allow custom shell script
Replies: 12
Views: 8258

Re: Selinux Policy Allow custom shell script

type=AVC msg=audit(1471867928.202:8334): avc: denied { execute } for pid=10784 comm="sh" name="script" dev="sda2" ino=135449105 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_sys_content_t:s0 tclass=file type=SYSCALL msg=audit(1471867928.202:8334): arch=c000003e syscall=...
by agriz
2016/08/22 16:45:56
Forum: CentOS 7 - General Support
Topic: Selinux Policy Allow custom shell script
Replies: 12
Views: 8258

Re: Selinux Policy Allow custom shell script

Selinux is already in enforcing mode. Nothing comes in audit
by agriz
2016/08/22 16:45:23
Forum: CentOS 7 - General Support
Topic: Selinux Policy Allow custom shell script
Replies: 12
Views: 8258

Re: Selinux Policy Allow custom shell script

SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28
by agriz
2016/08/22 16:36:15
Forum: CentOS 7 - General Support
Topic: Selinux Policy Allow custom shell script
Replies: 12
Views: 8258

Re: Selinux Policy Allow custom shell script

type=AVC msg=audit(1471764481.690:7480): avc: denied { open } for pid=11448 comm="logrotate" path="/etc/logrotate.d/lfd" dev="sda2" ino=135003505 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file type=AVC msg=audit(1471764484.512:7481): a...
by agriz
2016/08/22 16:24:55
Forum: CentOS 7 - General Support
Topic: Selinux Policy Allow custom shell script
Replies: 12
Views: 8258

Re: Selinux Policy Allow custom shell script

I am not getting any output when i run that script sir.

Code: Select all

tail -f audit.log
nothing comes in audit

/usr/local/bin/
ls -lZ
-rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_content_t:s0 script
by agriz
2016/08/22 15:57:15
Forum: CentOS 7 - General Support
Topic: Selinux Policy Allow custom shell script
Replies: 12
Views: 8258

Re: Selinux Policy Allow custom shell script

Code: Select all

setenforce 0
If i execute this command, i can run this script.
by agriz
2016/08/22 14:11:28
Forum: CentOS 7 - General Support
Topic: Selinux Policy Allow custom shell script
Replies: 12
Views: 8258

Selinux Policy Allow custom shell script

Sir,

I have typed one phython script and i want to use it in my php script via exec.
If that is the case, how do i make changes in audit. so selinux will allow me to run it.
the script is in /usr/local/bin

Thanks
by agriz
2016/08/20 01:46:49
Forum: CentOS 7 - Security Support
Topic: Is someone trying to hack? - How to prevent them?
Replies: 8
Views: 5488

Re: Is someone trying to hack? - How to prevent them?

Sir, The versions are already hidden. I have now disabled HTTP methods except get and post I already disabled root login and i have disabled functions in PHP 62.210.167.57 - - [19/Aug/2016:10:08:30 -0400] "GET http://www.bdsmpichunter.com/dde32.php HTTP/1.1" 404 27 "-" "Mozilla/5.0 (compatible; MSIE...
by agriz
2016/08/18 14:21:26
Forum: CentOS 7 - Security Support
Topic: Is someone trying to hack? - How to prevent them?
Replies: 8
Views: 5488

Re: Is someone trying to hack? - How to prevent them?

Sir

I dont have phpmyadmin
I have installed csf

Can i install fail2ban in additional?

The ip address is different everytime.
Can i get that script and check myself whether it is possible to download the script?
Can you please share the script?