LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-15-2007, 01:13 AM   #1
sharad
Member
 
Registered: Dec 2005
Posts: 48

Rep: Reputation: 15
system call to set file ACLs in linux


Hi all,

Can anybody tell me the answer of following query.

setfacl command uses which system call to set the ACLs of files &
directories in linux.

Kindly waiting for your reply.

Thanks & Regards,

Sharad.
 
Old 03-15-2007, 09:53 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
You should be able to determine this using strace.
 
Old 04-25-2019, 05:06 AM   #3
cirosantilli
LQ Newbie
 
Registered: Nov 2012
Posts: 4

Rep: Reputation: Disabled
Code:
strace -f -s999 -v setfacl -m u:cirsan01:rwx myfile
tells it uses getxattr with attribute "system.posix_acl_access":

Code:
setxattr("myfile", "system.posix_acl_access", "\2\0\0\0\1\0\6\0\377\377\377\377\2\0\7\0aO\0\0\4\0\6\0\377\377\377\377\20\0\7\0\377\377\377\377 \0\4\0\377\377\377\377", 44, 0) = 0
Tested in Ubuntu 16.04 on an ext4 filesystem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
list file system linux supports "please give the command or system call" varun_shrivastava Linux - General 4 01-09-2007 07:28 AM
Need help with writeing a new system call! What is a file descriptor? draksonije Programming 3 03-22-2006 02:08 AM
C++: can you set a timeout for a system call? BrianK Programming 1 06-03-2005 08:43 PM
how to use ls in a system call in C in linux newguy21 Programming 15 08-01-2004 01:38 PM
C system call in linux nerak Programming 6 04-10-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration