自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 Linux基础备忘_11:Selinux的base mode与mls mode切换

base(targeted) mode与mls mode切换,以base to mls为例:1)临时关掉selinux: setenforce 02)修改selinux config成mls和permissive3)fixfiles -F onboot,重启4)在系统message中grep -i 类似"SELinux is preventing"之类的关键字,(只在图形模式下ba...

2017-05-25 15:49:14 628 1

原创 Linux基础备忘_10:备份和恢复(包括对虚拟机的rescue)

tar -cvpzf  ./bak.tar / --exclude==/sys --exclude==/proc --exclude==/mnt --exclude==/lost+found --exclude==./bak.tar --selinux --xattrs保存至u盘,注意别忘做umountrm -fr /用启动u盘启动,进入rescue模式vgchange -a y ...

2017-05-24 17:55:41 288

原创 一铭server7运行自动化测试(ltp, audittest)

1)ltp 2017/04/10 master (version is 20170116)test case名称commit该commit所在kernel的版本注:一铭server7 3.10.0-327.36.1.el7.x86_64redhat是否有CVE解决方法getxattr045a93790d4e2df73e30c965ec

2017-04-17 09:47:20 429

原创 Linux基础备忘_08: LTP(Linux test project)

https://github.com/linux-test-project/ltpltp-scanner的编译需要:# yum install flex#yum install byacc如果使用auto configuration,还需要#yum install autoconf automakeconfiguration:#./configure#make

2017-04-11 10:25:04 1212

原创 Linux基础备忘_07: SELinux之利用te来调通bugzilla

问题由bugzilla无法使用mysql引起,mysql.sock(13)是permission deny,关闭selinux则OK。但是奇怪的是audit.log中并无AVC信息,即使已经semodule -DB.audit.log的问题已解决:注意一下audit.log的权限,service auditd才能正确启动AVC信息是:type=AVC msg=audit(14915

2017-04-07 15:39:01 409

原创 Linux基础备忘_06: ssh无密码访问和ssh root登录(在selinux下)

本机:1)#ssh-keygen2)#ssh-copy-id root@被访问机   这步也可以通过scp和cat完成。3)如果Agent admitted failure to sign using the key则ssh-add /root/.ssh/id_rsa.pub,这步如果出现Permissions 0644 for '/root/.ssh/id_rsa.pub' ar

2017-04-05 10:51:13 424

原创 Linux基础备忘_03:图形界面,中文输入,xwiki,selinux中配置bugzilla

图形界面: #vim /etc/X11/xinit/Xclients看出当前为gnome中文输入:除terminal外的应用均无法中文输入,使用init 5参考http://www.360doc.com/content/17/0312/15/4059533_636202845.shtml

2017-03-23 09:55:19 536

原创 Linux基础备忘_02:telnet相关

安装管理手册P106#yum install xinetd 轻量级internet daemon#service xinetd start/status#yum install telnet-server1) wget http://localhost/testfile OK, but wget http://localhost FAIL, 是因为默认welcome的index.h

2017-03-20 16:48:28 463

原创 Linux基础备忘_01:audit2allow的错误信息输出问题

1)编译加入debug信息#gcc -g a.c b.c -fPIC -shared -o libtest.so#gdb libtest.so

2017-03-17 14:55:31 2274

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除