当前位置: 首页 > news >正文

免费商标设计网站dede网站logo怎么改

免费商标设计网站,dede网站logo怎么改,企业网站设计与优化,建设工程工程量清单计价规范SElinux SElinux简介 SELinux是Security-Enhanced Linux的缩写#xff0c;意思是安全强化的linux SELinux 主要由美国国家安全局#xff08;NSA#xff09;开发#xff0c;当初开发的目的是为了避免资源的误用 传统的访问控制在我们开启权限后#xff0c;系统进程可以直…SElinux SElinux简介 SELinux是Security-Enhanced Linux的缩写意思是安全强化的linux SELinux 主要由美国国家安全局NSA开发当初开发的目的是为了避免资源的误用 传统的访问控制在我们开启权限后系统进程可以直接访问 当我们对权限设置不严谨时这种访问方式就是系统的安全漏洞 在开启SElinux后 会对进程本身部署安全上下文 会对文件部署安全上下文 会对服务使用端口进行限制 会对程序本身的不安全功能做限制 SElinux工作原理 SElinux工作方式 SELinux是通过MAC的方式来控制管理进程它控制的主体是进程而目标则是该进程能否读取的文件资源 主体subject就是进程 目标object被主体访问的资源可以是文件、目录、端口等。 策略policy由于进程与文件数量庞大因此SELinux会依据某些服务来制定基本的访问安全策略         targeted针对网络服务限制较多针对本机限制较少是默认的策略         strict完整的SELinux限制限制方面较为严格。 SElinux安全上下文 安全上下文security context 主体能不能访问目标除了策略指定外主体与目标的安全上下文必须一致才能够顺利访问。 最终文件的成功访问还是与文件系统的rwx权限设置有关 查看是否开启SElinux 已开启的主机 [rootlocalhost ~]# getenforce Disabled [rootlocalhost ~]# grubby --update-kernel ALL --args selinux1 [rootlocalhost ~]# reboot [rootlocalhost ~]# dnf install vsftpd -y [rootlocalhost ~]# systemctl start vsftpd.service [rootlocalhost ~]# vim /etc/vsftpd/vsftpd.conf [rootlocalhost ~]# systemctl restart vsftpd.service [rootlocalhost ~]# chmod 777 /var/ftp/pub/ [rootlocalhost ~]# ps axZ |grep vsftpd system_u:system_r:ftpd_t:s0-s0:c0.c1023 1924 ? Ss 0:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 1965 pts/0 S 0:00 grep --colorauto vsftpd [rootlocalhost ~]# touch /mnt/leefile [rootlocalhost ~]# ls -Z /mnt/ unconfined_u:object_r:default_t:s0 file1 unconfined_u:object_r:default_t:s0 file3 unconfined_u:object_r:default_t:s0 file5 unconfined_u:object_r:default_t:s0 file2 unconfined_u:object_r:default_t:s0 file4 unconfined_u:object_r:mnt_t:s0 leefile 对文件的影响 [rootlocalhost ~]# mv /mnt/leefile /var/ftp/ [rootlocalhost ~]# cd /var/ftp/ [rootlocalhost ftp]# ls leefile pub [rootlocalhost ftp]# curl ftp://172.25.254.129 drwxrwxrwx 2 0 0 6 May 09 2023 pub[rootlocalhost ftp]# lftp 172.25.254.129 lftp 172.25.254.129:~ ls drwxrwxrwx 2 0 0 6 May 09 2023 pub lftp 172.25.254.129:/ cd pub/ lftp 172.25.254.129:/pub ls lftp 172.25.254.129:/pub put /etc/passwd put: /etc/passwd: Access failed: 553 Could not create file. (passwd) lftp 172.25.254.129:/pub ls[rootlocalhost ftp]# getsebool -a |grep ftp ftpd_anon_write -- off ftpd_connect_all_unreserved -- off ftpd_connect_db -- off ftpd_full_access -- off ftpd_use_cifs -- off ftpd_use_fusefs -- off ftpd_use_nfs -- off ftpd_use_passive_mode -- off httpd_can_connect_ftp -- off httpd_enable_ftp_server -- off tftp_anon_write -- off tftp_home_dir -- off 对端口的影响 [rootlocalhost ftp]# vim /etc/ssh/sshd_config [rootlocalhost ftp]# systemctl restart sshd Job for sshd.service failed because the control process exited with error code. See systemctl status sshd.service and journalctl -xeu sshd.service for details. 未开启的主机 [rootlocalhost ~]# getenforce Disabled [rootlocalhost ~]# dnf install vsftpd -y [rootlocalhost ~]# systemctl start vsftpd.service [rootlocalhost ~]# vim /etc/vsftpd/vsftpd.conf [rootlocalhost ~]# systemctl restart vsftpd.service [rootlocalhost ~]# chmod 777 /var/ftp/pub/ [rootlocalhost ~]# ps axZ |grep vsftpd - 1805 ? Ss 0:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf - 1832 pts/0 S 0:00 grep --colorauto vsftpd [rootlocalhost ~]# touch /mnt/leefile [rootlocalhost ~]# ls Z /mnt/ ls: cannot access Z: No such file or directory /mnt/: hgfs leefile 对文件的影响 [rootlocalhost ~]# mv /mnt/leefile /var/ftp/ rootlocalhost ~]# cd /var/ftp/ [rootlocalhost ftp]# ls leefile pub [rootlocalhost ftp]# lftp 172.25.254.133 lftp 172.25.254.133:~ ls -rw-r--r-- 1 0 0 0 Dec 11 09:21 leefile drwxrwxrwx 2 0 0 6 May 09 2023 pub lftp 172.25.254.133:/ quit [rootlocalhost ftp]# curl ftp://172.25.254.133 -rw-r--r-- 1 0 0 0 Dec 11 09:21 leefile drwxrwxrwx 2 0 0 6 May 09 2023 pub[rootlocalhost ftp]# lftp 172.25.254.133 lftp 172.25.254.133:~ ls -rw-r--r-- 1 0 0 0 Dec 11 09:21 leefile drwxrwxrwx 2 0 0 6 May 09 2023 pub lftp 172.25.254.133:/ cd pub/ lftp 172.25.254.133:/pub put /etc/passwd 2199 bytes transferred lftp 172.25.254.133:/pub ls -rw------- 1 14 50 2199 Dec 11 09:42 passwd[rootlocalhost ftp]# getsebool -a |grep ftp getsebool: SELinux is disabled 对端口的影响 [rootlocalhost ftp]# systemctl restart sshd 安全上下文的查看 文件的安全上下文 [rootlocalhost ~]# ls -Zsystem_u:object_r:admin_home_t:s0 anaconda-ks.cfg unconfined_u:object_r:admin_home_t:s0 at_job.sh进程的安全上下文 [rootlocalhost ~]# ps axZ |grep vsftpd system_u:system_r:ftpd_t:s0-s0:c0.c1023 1924 ? Ss 0:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 2341 pts/0 S 0:00 grep --colorauto vsftpd 安全上下文用冒号分为四个字段Identifyroletype 身份标识Identify相当于账号方面的身份标识主要有以下三种常见的类型   root 表示root的账号身份   system_u 表示程序方面的标识通常就是进程   unconfined_u代表的是一般用户账号相关的身份。 角色role通过角色字段可知道这个数据是属于程序、文件资源还是代表用户。一般角色有   object_r 代表的是文件或目录等文件资源   system_r 代表的是进程。 类型type在默认的targeted策略中Identify与role字段基本上是不重要的重要的在于这个类型字段。而类型字段在文件与进程的定义不太相同分别是   type 在文件资源上面称为类型。   domain 在主体程序中则称为域 domain需要与type搭配则该程序才能够顺利读取文件资源。 代表灵敏度一般用s0、s1、s2来命名数字代表灵敏度的分级。数值越大、灵敏度越高 对于SElinux的管理及优化 SElinux工作模式 SElinux有三种工作模式   enforcing强制模式开始限制domain/type。   permissive宽容模式仅会有警告信息并不会实际限制domain/type的访问。   disabled关闭SELinux并没有实际运行。 对于SElinux状态管理 1.查看SElinux当前状态查看 [rootlocalhost ~]# getenforce Enforcing 2.临时更改SElinux的工作模式 [rootlocalhost ~]# setenforce 0 [rootlocalhost ~]# getenforce Permissive [rootlocalhost ~]# setenforce 1 [rootlocalhost ~]# getenforce Enforcing 3.永久更改SElinux状态永久更改SElinux的状态需要在更改后重启系统才能生效 在RHEL9之前的版本中通过文件来永久更改SElinux的状态 [rootlocalhost ~]# vim /etc/selinux/config SELINUXenforcing|permissive|disabled 在RHEL9中需要通过修改内核启动参数来永久更改SElinux的状态 [rootlocalhost ~]# grubby --update-kernel ALL --args selinux0 [rootlocalhost ~]# grubby --update-kernel ALL --remove-args selinux 4.重启SElinux 系统在开启SElinux后重启系统SElinux的所有内容不会有任何变化如果需要刷新SElinux [rootlocalhost ~]# touch /.autorelabel
http://www.zqtcl.cn/news/362188/

相关文章:

  • 大学生做兼职的网站有哪些免费行情软件网站有哪些
  • 静安手机网站建设常见的网络营销方法及其效果
  • 怎么改版网站湖南长沙地图
  • 中卫网站推广公司如何自创app软件
  • 无棣网站建设电子商务网站设计原理书籍
  • 做t-shirt素材网站企业网站建设结论
  • 唐山公司做网站查询建筑资质的网站
  • 邯郸的网站建设网站正能量入口
  • 网站导航栏最多可以做几个宝安网站设计排名
  • 自己怎样用手机建网站网件app
  • 周口网站开发西安市建设厅网站
  • 怎么授权小说做游戏网站论坛网站开发语言
  • 烟台商城网站建设怎么样引流顾客到店方法
  • 北京做网站公司的排名python基础教程pdf
  • 网站建设为什么学flash建设工程询价网站有哪些
  • 网站内容建设机制企业管理模式有哪些
  • 中山网站建设文化价格建网站域名注册
  • 手机电影网站怎么做大连最新发布
  • 珠三角网站建设网页制作专业知识
  • 罗湖微信网站制作深圳做网站哪个公司最好
  • ps如何做ppt模板下载网站网站模板分类
  • 网站建设在线网站服务器和直播服务器一样吗
  • iapp网站做软件教程朋友圈广告投放平台
  • 优门设 网站网站代理 正规备案
  • 衡水做wap网站上海做网站吧
  • seo推广思路seo线下培训班
  • 没有备案的网站怎么做淘宝客html5开发手机网站
  • 酒店旅游团购网站建设推广普通话实践总结
  • 基本的网站开发技术路线建设网站的好处有哪些
  • 网站排行怎么做wordpress all in one seo插件