xref: /onnv-gate/usr/src/cmd/perl/contrib/Sun/Solaris/Privilege/Privilege.pm (revision 12388:1bc8d55b0dfd)
17298SMark.J.Nelson@Sun.COM#
2*12273SCasper.Dik@Sun.COM# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
37298SMark.J.Nelson@Sun.COM#
47298SMark.J.Nelson@Sun.COM
50Sstevel@tonic-gate#
60Sstevel@tonic-gate# Privilege.pm provides the bootstrap for the Sun::Solaris::Privilege module.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate
98287SJohn.Sonnenschein@Sun.COMrequire 5.8.4;
100Sstevel@tonic-gateuse strict;
110Sstevel@tonic-gateuse warnings;
120Sstevel@tonic-gate
130Sstevel@tonic-gatepackage Sun::Solaris::Privilege;
140Sstevel@tonic-gate
15*12273SCasper.Dik@Sun.COMour $VERSION = '1.4';
160Sstevel@tonic-gate
170Sstevel@tonic-gateuse XSLoader;
180Sstevel@tonic-gateXSLoader::load(__PACKAGE__, $VERSION);
190Sstevel@tonic-gate
200Sstevel@tonic-gateour (@EXPORT_OK, %EXPORT_TAGS);
210Sstevel@tonic-gatemy @constants = qw(PRIV_STR_SHORT PRIV_STR_LIT PRIV_STR_PORT PRIV_ON PRIV_OFF
22*12273SCasper.Dik@Sun.COM	PRIV_SET PRIV_AWARE PRIV_AWARE_RESET PRIV_DEBUG PRIV_PFEXEC
23*12273SCasper.Dik@Sun.COM	PRIV_XPOLICY NET_MAC_AWARE NET_MAC_AWARE_INHERIT __PROC_PROTECT);
240Sstevel@tonic-gatemy @syscalls = qw(setppriv getppriv setpflags getpflags);
250Sstevel@tonic-gatemy @libcalls = qw(priv_addset priv_copyset priv_delset
260Sstevel@tonic-gate    priv_emptyset priv_fillset priv_intersect priv_inverse priv_ineffect
270Sstevel@tonic-gate    priv_isemptyset priv_isequalset priv_isfullset priv_ismember
280Sstevel@tonic-gate    priv_issubset priv_union priv_set_to_str priv_str_to_set priv_gettext);
290Sstevel@tonic-gatemy @variables = qw(%PRIVILEGES %PRIVSETS);
300Sstevel@tonic-gate
310Sstevel@tonic-gatemy @private = qw(priv_getsetbynum priv_getbynum);
320Sstevel@tonic-gate
330Sstevel@tonic-gateuse vars qw(%PRIVILEGES %PRIVSETS);
340Sstevel@tonic-gate
350Sstevel@tonic-gate#
360Sstevel@tonic-gate# Dynamically gather all the privilege and privilege set names; they are
370Sstevel@tonic-gate# generated in Privileges.xs::BOOT.
380Sstevel@tonic-gate#
390Sstevel@tonic-gatepush @constants, keys %PRIVILEGES, keys %PRIVSETS;
400Sstevel@tonic-gate
410Sstevel@tonic-gate@EXPORT_OK = (@constants, @syscalls, @libcalls, @private, @variables);
420Sstevel@tonic-gate%EXPORT_TAGS = (CONSTANTS => \@constants, SYSCALLS => \@syscalls,
430Sstevel@tonic-gate    LIBCALLS => \@libcalls, PRIVATE => \@private, VARIABLES => \@variables,
440Sstevel@tonic-gate    ALL => \@EXPORT_OK);
450Sstevel@tonic-gate
460Sstevel@tonic-gateour @ISA = qw(Exporter);
470Sstevel@tonic-gate
480Sstevel@tonic-gate1;
490Sstevel@tonic-gate__END__
50