Re: setfattr to set security.ima fails with error "Invalid argument"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 03.05.19 um 23:59 Uhr schrieb Lakshmi Ramasubramanian:
When trying to set security.ima extended attribute on any file I get error "Invalid argument".

setfattr -n security.ima -v foo /boot/vmlinuz-4.18.0-17-generic
setfattr: /boot/vmlinuz-4.18.0-17-generic: Invalid argument

"foo" is not a valid value.
If you just want to test setting *any* value you may try "0sBAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxg==".

If I try any other name for the extended, say, foo I see error "Operation not supported".

setfattr -n foo -v bar /boot/vmlinuz-4.18.0-17-generic
setfattr: /boot/vmlinuz-4.18.0-17-generic: Operation not supported

You need to use a namespace, see `man 7 xattr` for more information about extended attributes.

Ignaz



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux