priv_fopen man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

PRIV_FOPEN(3)			  Subroutines			 PRIV_FOPEN(3)

NAME
       priv_fopen - stream open functions for privileged files

SYNOPSIS
       #include <privman.h>

       int priv_fopen(const char *path, const char *mode);

DESCRIPTION
       priv_fopen  opens  the file whose name is the string pointed to by path
       and associates a stream with it.	 The stream can then be used by fread,
       fwrite,	and other such function calls.	priv_fopen takes the same mode
       strings as fopen(3).

       priv_fopen will only succeed if the configuration file for the applica‐
       tion allows the access.

RETURN VALUE
       priv_fopen  returns  the	 new file stream, or NULL if an error occurred
       (in which case, errno is set appropriately).   See  fopen(3)  for  more
       details, as this method parallels it.

FILES
       ${prefix}/etc/privman.d/appname
	      The  application's  configuration file.  See privman_conf(5) for
	      more details.

BUGS
       File creation may be possible without granting RW or AO access  to  the
       file.

AUTHOR
       Network Associates. Send email to <privman@nailabs.com>

SEE ALSO
       priv_bind(3)  priv_daemon(3)  priv_execve(3)  priv_open(3) priv_fork(3)
       priv_init(3) privman_conf(5) priv_pam(3) priv_rerunas(3) privman(7)

Unix				SEPTEMBER 2002			 PRIV_FOPEN(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net