Prev | Current Page 999 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"

files). The key is the item
being looked up. The file is the pathname of the file that contains the database.
15.7.54 -d44.4
Trace safefile( ) Debug command-line switch
The V8 sendmail program tries to be extra careful about file permissions, and the key to
checking them is the internal safefile( ) function. The -d44.4 debugging switch* prints the
parameters passed to the safefile( ) function:
safefile(fname, uid=uid, gid=gid, flags=sff_flags, mode=wantmode)
Here, the file named fname is being checked to determine whether the user identified by
the uid, withth e group gid, is allowed to find or use the file. The range of checking is determined
by the hexadecimal sff_flags, described in Table 15-11. Where a file??™s permissions
are required, the mode printed in wantmode will be used.
* There is no -d44.1 debugging information.
Table 15-11. safefile( ) access flags
Mnemonic Hex flag Description
SFF_ANYFILE 0x00000000 No special restrictions
SFF_MUSTOWN 0x00000001 User must own this file
SFF_NOSLINK 0x00000002 File cannot be a symbolic link
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
570 | Chapter 15: Debug sendmail with -d
If both the SFF_NOPATHCHECK flag and the SFF_SAFEDIRPATH flags are clear (are 0),
sendmail examines each component of the path leading to the file.


Pages:
987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011
Pozycjonowanie Wrocław nocleg lodz pompy ciepła kasta.brene.pl Wczasy nad morzem