Re: SELinux Exim Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 10, 2009 at 7:52 AM, Gordon Messmer <yinyang@xxxxxxxxx> wrote:
> Right.  IIRC, because some elements of the path may be symlinks or bind
> mounts, statvfs will stat() the path argument, and then stat() each
> filesystem in /proc/mounts.  It will compare the st_dev elements of each
> filesystem listed to the st_dev from the path in order to determine which fs
> actually contains the path argument.
>
> The question I'd ask is why exim is using statvfs() instead of statfs().

>From statfs(2):

CONFORMING TO
       Linux-specific.  The Linux statfs() was inspired by the 4.4BSD one (but
       they do not use the same structure).

NOTES
       The  kernel  has  system  calls  statfs(),  fstatfs(),  statfs64(), and
       fstatfs64() to support this library call.

       Some  systems  only  have  <sys/vfs.h>,   other   systems   also   have
       <sys/statfs.h>,  where  the  former  includes  the latter.  So it seems
       including the former is the best choice.

       LSB has deprecated the library calls statfs() and fstatfs()  and  tells
       us to use statvfs(2) and fstatvfs(2) instead.

So, using statvfs is the POSIX-ly right thing to do.

I think this discussion should really be had with upstream regarding
this problem.

Didar

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux