Chattr - Inappropriate ioctl for device while reading flags on... (need help)

Hi!

Is it possible to use chattr +ai command on a tmpfs drive?
Or another command for that?

I want to immunize a file which is copied to my RAM-drive when I booted my PC. The following error message appears:

chattr: Inappropriate ioctl for device while reading flags on...

fstab:
tmpfs /path-to-folder tmpfs rw,nosuid,nodev,noexec 0 0

Hi, I checked with a coworker ... see man page of tmpfs

The tmpfs filesystem supports extended attributes (see xattr (7)), but user extended attributes are not permitted. ...

I have now found another solution. I edited a AppArmor profile of my program to be not owerwritten. Deny it's config file to be owerwritten after reboot.

"SOLVED"