The most likely problem is that your kernel does not have Smack enabled.
# grep smackfs /proc/filesystems
nodev smackfs
#
If you don’t find the entry for smackfs in /proc/filesystems you either don’t
have Smack built into your kernel or you have specified a different security
module using the “security=” boot option.
From: IVI [mailto:[email protected]] On Behalf Of ???
Sent: Monday, March 30, 2015 5:02 AM
To: José Bollo; [email protected]
Subject: Re: [IVI] [question]add the smack label[User] to USB's file
Hello,
jose bollo
Thank you for you tips.
I try to mount the USB using the smack mount option.
But without success
[command]
1.mount -t tmpfs -o smackfsroot="User" /dev/sda1 /usr/USB/
2.mount -t tmpfs -o smackfsroot="*" /dev/sda1 /usr/USB/
[error log]
tmpfs: Bad mount option smackfsroot
Please give me some tips.
Thank you very much.
2015-03-30 17:05 GMT+08:00 José Bollo
<[email protected]<mailto:[email protected]>>:
Le lundi 30 mars 2015 à 16:45 +0800, 虞申鹏 a écrit :
> Hi,
> every one.
>
>
> We make a QT player to play the media file from USB.
>
>
> Now ,we mount the USB to Linux file system.
> But we can't to add the smack label to the media file from USB.
Hello,
It is because the USB device is formatted using a filesystem that
doesn't support extended attributes.
I'm guessing that you don't want to change the file system to be
compatible with some well known closed systems.
Thus you should mount the usb using the smack mount option
"smackfsroot=*". The unit /usr/lib/systemd/system/tmp.mount of Tizen
common will show you how tmp is mounted.
Best regards
José Bollo
_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi