IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

setfsuid (2)

SETFSUID(2)                Linux Programmer's Manual               SETFSUID(2)



NAME
       setfsuid - set user identity used for file system checks

SYNOPSIS
       #include<unistd.h> /* glibc uses <sys/fsuid.h> */

       intsetfsuid(uid_t fsuid);

DESCRIPTION
       The system call setfsuid sets the user ID that the Linux kernel uses to
       check for all accesses to the file system. Normally, the value of fsuid
       will  shadow  the value of the effective user ID. In fact, whenever the
       effective user ID is changed, fsuid will also be  changed  to  the  new
       value of the effective user ID.

       Explicit  calls  to setfsuid and setfsgid are usually only used by pro-
       grams such as the Linux NFS server that need to change  what  user  and
       group  ID is used for file access without a corresponding change in the
       real and effective user and group IDs.  A change in the normal user IDs
       for a program such as the NFS server is a security hole that can expose
       it to unwanted signals. (But see below.)

       setfsuid will only succeed if the caller is the superuser or  if  fsuid
       matches  either the real user ID, effective user ID, saved set-user-ID,
       or the current value of fsuid.

RETURNVALUE
       On success, the previous value of fsuid is  returned.   On  error,  the
       current value of fsuid is returned.

CONFORMINGTO
       setfsuid  is Linux specific and should not be used in programs intended
       to be portable.  It is present since Linux 1.1.44  and  in  libc  since
       libc 4.7.6.

BUGS
       No  error  messages of any kind are returned to the caller. At the very
       least, EPERM should be returned when the call fails.

NOTES
       When glibc determines that the argument is not a  valid  uid,  it  will
       return -1 and set errno to EINVAL without attempting the system call.

       Note  that at the time this system call was introduced, a process could
       send a signal to a process with the same effective user ID.  Today sig-
       nal permission handling is slightly different.

SEEALSO
       kill(2), setfsgid(2)



Linux 1.3.15                      2002-07-23                       SETFSUID(2)

_Exitgetsockoptoutwshmat
_exitgettidoutw_pshmctl
_llseekgettimeofdaypauseshmdt
_newselectgetuidpersonalityshmget
_sysctlgttypipeshmop
acceptidlepivot_rootshutdown
accessinbpollsigaction
acctinb_pprctlsigaltstack
adjtimexinlpreadsigblock
afs_syscallinl_pprofsiggetmask
alarminsbpselectsigmask
alloc_hugepagesinslptracesignal
arch_prctlinswpwritesigpause
bdflushintroquotactlsigpending
bindinwreadsigprocmask
breakinw_preaddirsigqueue
brkioctlreadlinksigreturn
cacheflushioctl_listreadvsigsetmask
capgetiopermrebootsigsuspend
capsetioplrecvsigtimedwait
chdiripcrecvfromsigvec
chmodkillrecvmsgsigwaitinfo
chownkillpgrenamesocket
chrootlchownrmdirsocketcall
clonelinksbrksocketpair
closelistensched_get_priority_maxssetmask
connectllseeksched_get_priority_minstat
creatlocksched_getaffinitystatfs
duplseeksched_getparamstime
dup2lstatsched_getschedulerstty
execvemadvisesched_rr_get_intervalswapoff
exitmincoresched_setaffinityswapon
fchdirmkdirsched_setparamsymlink
fchmodmknodsched_setschedulersync
fchownmlocksched_yieldsyscall
fcntlmlockallselectsyscalls
fdatasyncmmapselect_tutsysctl
flockmmap2semctlsysfs
forkmodify_ldtsemgetsysinfo
free_hugepagesmountsemopsyslog
fstatmprotectsendtime
fstatfsmpxsendfiletimes
fsyncmremapsendmsgtkill
ftruncatemsgctlsendtotruncate
futexmsggetsetcontextumask
getcontextmsgopsetdomainnameumount
getdentsmsgrcvsetegidumount2
getdomainnamemsgsndseteuiduname
getdtablesizemsyncsetfsgidundocumented
getegidmunlocksetfsuidunimplemented
geteuidmunlockallsetgidunlink
getgidmunmapsetgroupsuselib
getgroupsnanosleepsethostidustat
gethostidnfsservctlsethostnameutime
gethostnamenicesetitimerutimes
getitimerobsoletesetpgidvfork
getpagesizeoldfstatsetpgrpvhangup
getpeernameoldlstatsetpriorityvm86
getpgidoldoldunamesetregidwait
getpgrpoldstatsetresgidwait3
getpidoldunamesetresuidwait4
getppidopensetreuidwaitpid
getpriorityoutbsetrlimitwrite
getresgidoutb_psetsidwritev
getresuidoutlsetsockopt 
getrlimitoutl_psettimeofday 
getrusageoutsbsetuid 
getsidoutslsetup 


ImageMagick 6.6.0-7
ImageMagick image processing studio
Phorum 5.2.15
Web based discussion software written in PHP.
Gtkmm 2.19.7
C++ interface for popular GUI library GTK+
Sylpheed 3.0.1
Mail User Agent based on GTK+
PhpMyAdmin 3.3.1
Php front-end to MySQL administration
NVidia driver 195.36.15
Linux unified nVidia driver
Monkey HTTP Daemon 0.10.0-rc4
Monkey is a small and fast web server for linux
GTK2 2.18.9
GUI Toolkit
GLib2 2.22.5
Library of useful routines for C programming
WebGUI 7.8.15
A fully featured content management system.
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

Vulnerability Management for Dummies

Get all the Facts and See How to Implement a Successful Vulnerability Management Program.

Website Magazine

Has tapped premier talent in the Internet industry for our content and each and every issue will contain practical advice and insights for website owners.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info