SunScreen 3.1 Reference Manual

policy Subcommand

ssadm policy creates, deletes, renames, or lists the defined policies.

Usage:

ssadm policy -a policies...

ssadm policy -c oldname newname

ssadm policy -d [-v] policies...

ssadm policy -l [-v] [policies...]

ssadm policy -r oldname newname

TABLE B-6 describes the options for this command.

Table B-6 Options for policy Subcommand

Options 

Description 

-a

Creates policies with the specified names. The newly created policies contain no rules and references the currently defined common objects. 

-c

Creates a policy named newname as a copy of the existing policy named oldname.

-d

Deletes the named policies. The specified policies can be either generic policy names, such as Initial, or specific versions, such as "Initial.3". When a generic policy name is specified and the -v option is specified, ssadm policy -d deletes all of the versions of the policy. When a specific version is specified, only that version is deleted.

-l

Lists the named policies (or all policies available if no policies are given). The -v option also lists all of the saved versions of the policies.

-r

Renames the existing policy oldname to newname.