ACL permissions in Krusader

23 views
Skip to first unread message

Karai Csaba

unread,
Dec 21, 2006, 8:06:42 AM12/21/06
to krusade...@googlegroups.com
Hi!

My last commit lets Krusader use ACL permissions.

Check it with File->Properties->Permissions->Special...

'Preserve attributes' preserves the ACL permissions as well.
'Synchronizer' also preserves the ACL permissions.

Try it and use it.

Bye,

Csaba

Shie Erlich

unread,
Dec 22, 2006, 6:37:23 PM12/22/06
to krusade...@googlegroups.com
i've never used acls before, but i'll be sure to have a look.

shie
--
Shie Erlich
http://www.krusader.org/

Jonas Bähr

unread,
Dec 22, 2006, 7:46:49 PM12/22/06
to krusade...@googlegroups.com
Am 23.12.2006 um 00:37 schrieb Shie Erlich:
> i've never used acls before, but i'll be sure to have a look.

me neither, but I think you made a little cut&paste error in
configure.in.in... The helptext for the --without-acl switch still
refers to Konqueror's servicemenu ;-)
btw: is there any other KDE filemanager that supports ACL's? If not,
that might be a nice storry for the dot...

bye,
Jonas

Frank Schoolmeesters

unread,
Dec 23, 2006, 2:35:24 AM12/23/06
to krusade...@googlegroups.com

Karai Csaba

unread,
Dec 23, 2006, 4:34:59 AM12/23/06
to krusade...@googlegroups.com
> btw: is there any other KDE filemanager that supports ACL's? If not,
> that might be a nice storry for the dot...

Konqueror supports it.

I think, that ACL permissions will have much more importance in the
future. I like them better than the owner-group-other forms.

I fixed the misspell in configure.in.in.

Csaba

Rafi Yanai

unread,
Dec 23, 2006, 5:06:57 AM12/23/06
to krusade...@googlegroups.com
Can we use this feature to manage SELinux permissions ?
(SELinux  now comes as default in Fedora and Suse will do the same I'm sure)

Karai Csaba

unread,
Dec 26, 2006, 4:51:13 PM12/26/06
to krusade...@googlegroups.com
Rafi Yanai írta:

> Can we use this feature to manage SELinux permissions ?
> (SELinux now comes as default in Fedora and Suse will do the same I'm sure)
>

I don't know SELinux. I've tried on SuSE 10.2 with EXT3 file system.
I think that there's an option for EXT3 to handle ACL permissions.
It works on SuSE by default...

Required: a file system with ACL extension
and KDE > 3.5

Csaba

Heiner

unread,
Jan 8, 2007, 4:01:07 PM1/8/07
to krusade...@googlegroups.com
On Thursday 21 December 2006 14:06, Karai Csaba wrote:
> Hi!
>
> My last commit lets Krusader use ACL permissions.

Hi!

I tried to compile the beta1 under FreeBSD:

/usr/X11R6/bin/moc ./normal_vfs.h -o normal_vfs.moc
if
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include -I/usr/X11R6/include -I/usr/local/include -DQT_THREAD_SUPPORT -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE -D_LARGEFILE64_SOURCE -DKDE_NO_COMPAT -DQT_NO_ASCII_CAST -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -O2 -O -pipe -fno-exceptions -fno-check-new -fno-common -MT
normal_vfs.o -MD -MP -MF ".deps/normal_vfs.Tpo" \
-c -o normal_vfs.o `test -f 'normal_vfs.cpp' ||
echo './'`normal_vfs.cpp; \
then mv -f ".deps/normal_vfs.Tpo" ".deps/normal_vfs.Po"; \
else rm -f ".deps/normal_vfs.Tpo"; exit 1; \
fi
normal_vfs.cpp:283:5: warning: "HAVE_NON_POSIX_ACL_EXTENSIONS" is not defined
normal_vfs.cpp:290:5: warning: "HAVE_NON_POSIX_ACL_EXTENSIONS" is not defined
normal_vfs.cpp: In static member function `static QString
normal_vfs::getACL(const QString&, int)':
normal_vfs.cpp:303: error: `acl_equiv_mode' undeclared (first use this
function)
normal_vfs.cpp:303: error: (Each undeclared identifier is reported only once
for each function it appears in.)
gmake[3]: *** [normal_vfs.o] Error 1
gmake[3]: Leaving directory
`/usr/ports/my/krusader/work/krusader-1.80.0-beta1/krusader/VFS'


If I google for acl_equiv_mode, I found a man page, which end with:

STANDARDS
This is a non-portable, Linux specific extension to the ACL manipulation
functions defined in(1,8) IEEE Std 1003.1e draft 17 ("POSIX.1e",
abandoned).

I never did anything with acl. Could you rewrite it using portable code? Or
should I better try to turn acl off in FreeBSD?


Heiner

Rafi Yanai

unread,
Jan 8, 2007, 4:24:56 PM1/8/07
to krusade...@googlegroups.com
Csaba, is it possible that you mixed the defines between HAVE_POSIX_ACL and HAVE_NON_POSIX_ACL_EXTENSIONS

#ifdef HAVE_POSIX_ACL
#include <sys/acl.h>
#ifdef HAVE_NON_POSIX_ACL_EXTENSIONS
#include <acl/libacl.h>
#endif

acl_equiv_mode() is defined in acl/libacl.h but used in a #ifdef HAVE_POSIX_ACL block

Heiner Eichmann

unread,
Jan 9, 2007, 2:12:36 AM1/9/07
to krusade...@googlegroups.com
> acl_equiv_mode() is defined in acl/libacl.h but used in a #ifdef
> HAVE_POSIX_ACL block

Good morning!

I searched for "equiv_mode" in the /usr/include and /usr/local/include but did not find anything. On the other hand my FreeBSD has a file /usr/include/sys.acl.h which contains a lot of acl_* functions, but no acl_equiv_mode(). So I think acl_equiv_mode() is not portable. But as I said: I never did anything with acl so far!


Best regards


Heiner
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Karai Csaba

unread,
Jan 9, 2007, 5:51:36 AM1/9/07
to krusade...@googlegroups.com
Fixed. It'll work without HAVE_NON_POSIX_ACL_EXTENSIONS defined.

Csaba

ext Heiner írta:

Heiner

unread,
Jan 11, 2007, 3:19:49 PM1/11/07
to krusade...@googlegroups.com
On Tuesday 09 January 2007 11:51, Karai Csaba wrote:
> Fixed. It'll work without HAVE_NON_POSIX_ACL_EXTENSIONS defined.

The cvs head of yesterday builds now on FreeBSD!


Thanks


Heiner

Reply all
Reply to author
Forward
0 new messages