daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Dec 18th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 ~]$
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top