Guest User

Untitled

a guest
Dec 18th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. [vagrant@localhost ~]$ cat test.sh
  2. #!/bin/bash
  3. echo Hello.
  4. [vagrant@localhost ~]$ sudo evmctl ima_hash ./test.sh
  5. [vagrant@localhost ~]$ getfattr -d -m - ./test.sh
  6. # file: test.sh
  7. security.ima=0sAa6xFW4qNsewEIANQ2EYsmTY0/Sa
  8. security.selinux="unconfined_u:object_r:user_home_t:s0"
  9.  
  10. [vagrant@localhost ~]$ echo 'echo Foo' >> ./test.sh
  11. [vagrant@localhost ~]$ getfattr -d -m - ./test.sh
  12. # file: test.sh
  13. security.ima=0sAa6xFW4qNsewEIANQ2EYsmTY0/Sa
  14. security.selinux="unconfined_u:object_r:user_home_t:s0"
  15.  
  16. [vagrant@localhost ~]$ ./test.sh
  17. Hello.
  18. Foo
  19. [vagrant@localhost ~]$ getfattr -d -m - ./test.sh
  20. # file: test.sh
  21. security.ima=0sAa6xFW4qNsewEIANQ2EYsmTY0/Sa
  22. security.selinux="unconfined_u:object_r:user_home_t:s0"
  23.  
  24. [vagrant@localhost ~]$ vi test.sh
  25. [vagrant@localhost ~]$ getfattr -d -m - ./test.sh
  26. # file: test.sh
  27. security.selinux="unconfined_u:object_r:user_home_t:s0"
  28.  
  29. [vagrant@localhost ~]$ cat test.sh
  30. #!/bin/bash
  31. echo Hello.
  32. echo Foo
  33. echo Bar.
  34. [vagrant@localhost ~]$
Add Comment
Please, Sign In to add comment