GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PRIV_OPEN (3)

NAME

priv_open - open and possibly create a privileged file

CONTENTS

Synopsis
Description
Files
Bugs
Author

SYNOPSIS

#include <privman.h>

int priv_open(const char *pathname, int flags);

int priv_open(const char *pathname, int flags, mode_t mode);

DESCRIPTION

priv_open is equivalent to the open(2) syscall. It converts a pathname into a file descriptor that can be used with read, write, and other such calls. priv_open takes the same flags as open(2).

priv_open will only succeed if the configuration file for the application allows the access.

RETURN VALUE

priv_open returns the new file descriptor, or -1 if an error occurred (in which case, errno is set appropriately). See open(2) for more details, as this method parallels it.

FILES

${prefix}/etc/privman.d/appname
The application’s configuration file. See privman_conf(5)

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_fopen(3) priv_fork(3) priv_init(3) privman_conf(5) priv_pam(3) priv_rerunas(3) privman(7)
Search for    or go to Top of page |  Section 3 |  Main Index


Unix PRIV_OPEN (3) SEPTEMBER 2002

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.