Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [vagrant@localhost ~]$ cat test.sh
- #!/bin/bash
- echo Hello.
- [vagrant@localhost ~]$ sudo evmctl ima_hash ./test.sh
- [vagrant@localhost ~]$ getfattr -d -m - ./test.sh
- # file: test.sh
- security.ima=0sAa6xFW4qNsewEIANQ2EYsmTY0/Sa
- security.selinux="unconfined_u:object_r:user_home_t:s0"
- [vagrant@localhost ~]$ echo 'echo Foo' >> ./test.sh
- [vagrant@localhost ~]$ getfattr -d -m - ./test.sh
- # file: test.sh
- security.ima=0sAa6xFW4qNsewEIANQ2EYsmTY0/Sa
- security.selinux="unconfined_u:object_r:user_home_t:s0"
- [vagrant@localhost ~]$ ./test.sh
- Hello.
- Foo
- [vagrant@localhost ~]$ getfattr -d -m - ./test.sh
- # file: test.sh
- security.ima=0sAa6xFW4qNsewEIANQ2EYsmTY0/Sa
- security.selinux="unconfined_u:object_r:user_home_t:s0"
- [vagrant@localhost ~]$ vi test.sh
- [vagrant@localhost ~]$ getfattr -d -m - ./test.sh
- # file: test.sh
- security.selinux="unconfined_u:object_r:user_home_t:s0"
- [vagrant@localhost ~]$ cat test.sh
- #!/bin/bash
- echo Hello.
- echo Foo
- echo Bar.
- [vagrant@localhost ~]$
Add Comment
Please, Sign In to add comment