public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] File-system mounting questions
@ 2015-09-18 21:14 Walter Dnes
  2015-09-18 21:36 ` Fernando Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Walter Dnes @ 2015-09-18 21:14 UTC (permalink / raw
  To: Gentoo Users List

  A while ago, I mentioned that I had problems running cdda2wav as a
regular user.  While rebuilding cdrtools recently, I noticed that the
build finished with the following warnings...

>>> Installing (1 of 1) app-cdr/cdrtools-3.01_alpha17::gentoo
 * >>> SetUID: [chmod go-r] /usr/sbin/rscsi ...                          [ ok ]
 * >>> SetUID: [chmod go-r] /usr/bin/cdda2wav ...                        [ ok ]
 * >>> SetUID: [chmod go-r] /usr/bin/readcd ...                          [ ok ]
 * >>> SetUID: [chmod go-r] /usr/bin/cdrecord ...                        [ ok ]
 * Could not set caps on '/usr/bin/cdrecord' due to missing filesystem support:
 * * enable XATTR support for 'ext2/ext3' in your kernel (if configurable)
 * * mount the fs with the user_xattr option (if not the default)
 * * enable the relevant FS_SECURITY option (if configurable)
 * Could not set caps on '/usr/bin/cdda2wav' due to missing filesystem support:
 * * enable XATTR support for 'ext2/ext3' in your kernel (if configurable)
 * * mount the fs with the user_xattr option (if not the default)
 * * enable the relevant FS_SECURITY option (if configurable)
 * Could not set caps on '/usr/bin/readcd' due to missing filesystem support:
 * * enable XATTR support for 'ext2/ext3' in your kernel (if configurable)
 * * mount the fs with the user_xattr option (if not the default)
 * * enable the relevant FS_SECURITY option (if configurable)
>>> Auto-cleaning packages...

  That might explain my problems.  So I modified my kernel as below...

<*> Second extended fs support
[*]   Ext2 extended attributes
[ ]     Ext2 POSIX Access Control Lists
[ ]     Ext2 Security Labels
<*> Ext3 journalling file system support
[*]   Default to 'data=ordered' in ext3
[*]   Ext3 extended attributes
[ ]     Ext3 POSIX Access Control Lists
[ ]     Ext3 Security Labels
< > The Extended 4 (ext4) filesystem

...rebuilt, and rebooted into it.  Still the same warnings on the build.
So now it appears that I have to...
> mount the fs with the user_xattr option (if not the default)
> enable the relevant FS_SECURITY option (if configurable)

  Can someone point me to an example somewhere of how to do it?  I
prefer not to muck around blindly with unknown options in /etc/fstab
BTW, I'm building cdrtools with USE="caps filecaps -acl -nls -unicode"
if that matters.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] File-system mounting questions
  2015-09-18 21:14 [gentoo-user] File-system mounting questions Walter Dnes
@ 2015-09-18 21:36 ` Fernando Rodriguez
  2015-09-19 19:06   ` Walter Dnes
  0 siblings, 1 reply; 3+ messages in thread
From: Fernando Rodriguez @ 2015-09-18 21:36 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2739 bytes --]

On Friday, September 18, 2015 5:14:15 PM Walter Dnes wrote:
>   A while ago, I mentioned that I had problems running cdda2wav as a
> regular user.  While rebuilding cdrtools recently, I noticed that the
> build finished with the following warnings...
> 
> >>> Installing (1 of 1) app-cdr/cdrtools-3.01_alpha17::gentoo
>  * >>> SetUID: [chmod go-r] /usr/sbin/rscsi ...                          [ ok ]
>  * >>> SetUID: [chmod go-r] /usr/bin/cdda2wav ...                        [ ok ]
>  * >>> SetUID: [chmod go-r] /usr/bin/readcd ...                          [ ok ]
>  * >>> SetUID: [chmod go-r] /usr/bin/cdrecord ...                        [ ok ]
>  * Could not set caps on '/usr/bin/cdrecord' due to missing filesystem support:
>  * * enable XATTR support for 'ext2/ext3' in your kernel (if configurable)
>  * * mount the fs with the user_xattr option (if not the default)
>  * * enable the relevant FS_SECURITY option (if configurable)
>  * Could not set caps on '/usr/bin/cdda2wav' due to missing filesystem support:
>  * * enable XATTR support for 'ext2/ext3' in your kernel (if configurable)
>  * * mount the fs with the user_xattr option (if not the default)
>  * * enable the relevant FS_SECURITY option (if configurable)
>  * Could not set caps on '/usr/bin/readcd' due to missing filesystem support:
>  * * enable XATTR support for 'ext2/ext3' in your kernel (if configurable)
>  * * mount the fs with the user_xattr option (if not the default)
>  * * enable the relevant FS_SECURITY option (if configurable)
> >>> Auto-cleaning packages...
> 
>   That might explain my problems.  So I modified my kernel as below...
> 
> <*> Second extended fs support
> [*]   Ext2 extended attributes
> [ ]     Ext2 POSIX Access Control Lists
> [ ]     Ext2 Security Labels
> <*> Ext3 journalling file system support
> [*]   Default to 'data=ordered' in ext3
> [*]   Ext3 extended attributes
> [ ]     Ext3 POSIX Access Control Lists
> [ ]     Ext3 Security Labels

You'll also need this ^

> < > The Extended 4 (ext4) filesystem
> 
> ...rebuilt, and rebooted into it.  Still the same warnings on the build.
> So now it appears that I have to...
> > mount the fs with the user_xattr option (if not the default)
> > enable the relevant FS_SECURITY option (if configurable)
> 
>   Can someone point me to an example somewhere of how to do it?  I
> prefer not to muck around blindly with unknown options in /etc/fstab
> BTW, I'm building cdrtools with USE="caps filecaps -acl -nls -unicode"
> if that matters.

Just add the user_xattr unde <opts> column. Like:

UUID=34868f06-d56b-4539-a649-33ec96b50d74       /               ext3            noatime,user_xattr      0 1 

-- 
Fernando Rodriguez

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] File-system mounting questions
  2015-09-18 21:36 ` Fernando Rodriguez
@ 2015-09-19 19:06   ` Walter Dnes
  0 siblings, 0 replies; 3+ messages in thread
From: Walter Dnes @ 2015-09-19 19:06 UTC (permalink / raw
  To: gentoo-user

On Fri, Sep 18, 2015 at 05:36:35PM -0400, Fernando Rodriguez wrote
> On Friday, September 18, 2015 5:14:15 PM Walter Dnes wrote:
> >  * Could not set caps on '/usr/bin/readcd' due to missing filesystem support:
> >  * * enable XATTR support for 'ext2/ext3' in your kernel (if configurable)
> >  * * mount the fs with the user_xattr option (if not the default)
> >  * * enable the relevant FS_SECURITY option (if configurable)
> > >>> Auto-cleaning packages...
> > 
> >   That might explain my problems.  So I modified my kernel as below...
> > 
> > <*> Second extended fs support
> > [*]   Ext2 extended attributes
> > [ ]     Ext2 POSIX Access Control Lists
> > [ ]     Ext2 Security Labels
> > <*> Ext3 journalling file system support
> > [*]   Default to 'data=ordered' in ext3
> > [*]   Ext3 extended attributes
> > [ ]     Ext3 POSIX Access Control Lists
> > [ ]     Ext3 Security Labels
> 
> You'll also need this ^

[...deletia...]

> Just add the user_xattr unde <opts> column. Like:
> 
> UUID=34868f06-d56b-4539-a649-33ec96b50d74       /               ext3            noatime,user_xattr      0 1

  Thanks.  It has greatly improved things.  I added...
[*]     Ext2 Security Labels
[*]     Ext3 Security Labels

Thank you very much; it works.  The number of warnings as regular user
is greatly reduced.  It no longer complains about insufficient device
permissions or the possibility of jitter.  There are now only 2 lines of
meddages.  They're about "Operation not permitted", like so...


No media catalog number present.
scanning for ISRCs: 20 ...
index scan: 20...
samplefile size will be 494726780 bytes.
recording 2804.5733 seconds stereo with 16 bits @ 44100.0 Hz ->'audio'...
using lib paranoia for reading.
cdda2wav: Operation not permitted. Cannot set process capabilities.
cdda2wav: Operation not permitted. Cannot set posix realtime scheduling policy.


  But everything seems to work OK, so I'm satisfied.

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-19 23:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-18 21:14 [gentoo-user] File-system mounting questions Walter Dnes
2015-09-18 21:36 ` Fernando Rodriguez
2015-09-19 19:06   ` Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox