policies

package
v0.105.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomDirectoriesPolicies = pathpolicy.NewPathPolicies(map[string]pathpolicy.PathPolicy{
	"/":           {},
	"/bin":        {Deny: true},
	"/boot":       {Deny: true},
	"/dev":        {Deny: true},
	"/lib":        {Deny: true},
	"/lib64":      {Deny: true},
	"/lost+found": {Deny: true},
	"/proc":       {Deny: true},
	"/run":        {Deny: true},
	"/sbin":       {Deny: true},
	"/sys":        {Deny: true},
	"/sysroot":    {Deny: true},
	"/tmp":        {Deny: true},
	"/usr":        {Deny: true},
	"/var/run":    {Deny: true},
	"/var/tmp":    {Deny: true},
	"/efi":        {Deny: true},
})

CustomDirectoriesPolicies is a set of default policies for custom directories

View Source
var CustomFilesPolicies = pathpolicy.NewPathPolicies(map[string]pathpolicy.PathPolicy{
	"/":               {},
	"/usr/local/bin":  {},
	"/usr/local/sbin": {},
	"/bin":            {Deny: true},
	"/boot":           {Deny: true},
	"/dev":            {Deny: true},
	"/efi":            {Deny: true},
	"/etc/fstab":      {Deny: true},
	"/etc/group":      {Deny: true},
	"/etc/passwd":     {Deny: true},
	"/etc/shadow":     {Deny: true},
	"/lib":            {Deny: true},
	"/lib64":          {Deny: true},
	"/lost+found":     {Deny: true},
	"/proc":           {Deny: true},
	"/run":            {Deny: true},
	"/sbin":           {Deny: true},
	"/sys":            {Deny: true},
	"/sysroot":        {Deny: true},
	"/tmp":            {Deny: true},
	"/usr":            {Deny: true},
	"/var/run":        {Deny: true},
	"/var/tmp":        {Deny: true},
})

CustomFilesPolicies is a set of default policies for custom files

View Source
var MountpointPolicies = pathpolicy.NewPathPolicies(map[string]pathpolicy.PathPolicy{
	"/": {},

	"/etc": {Deny: true},

	"/usr": {Exact: true},

	"/sys":  {Deny: true},
	"/proc": {Deny: true},
	"/dev":  {Deny: true},
	"/run":  {Deny: true},

	"/bin":   {Deny: true},
	"/sbin":  {Deny: true},
	"/lib":   {Deny: true},
	"/lib64": {Deny: true},

	"/lost+found": {Deny: true},

	"/boot/efi": {Deny: true},

	"/sysroot": {Deny: true},

	"/var/run": {Deny: true},

	"/var/lock": {Deny: true},
})

MountpointPolicies is a set of default mountpoint policies used for filesystem customizations

View Source
var OstreeCustomDirectoriesPolicies = pathpolicy.NewPathPolicies(map[string]pathpolicy.PathPolicy{
	"/":    {Deny: true},
	"/etc": {},
})

CustomDirectoriesPolicies for ostree

View Source
var OstreeCustomFilesPolicies = pathpolicy.NewPathPolicies(map[string]pathpolicy.PathPolicy{
	"/":               {Deny: true},
	"/etc":            {},
	"/root":           {},
	"/usr/local/bin":  {},
	"/usr/local/sbin": {},
	"/etc/fstab":      {Deny: true},
	"/etc/shadow":     {Deny: true},
	"/etc/passwd":     {Deny: true},
	"/etc/group":      {Deny: true},
})

CustomFilesPolicies for ostree

View Source
var OstreeMountpointPolicies = pathpolicy.NewPathPolicies(map[string]pathpolicy.PathPolicy{
	"/":             {},
	"/home":         {Deny: true},
	"/mnt":          {Deny: true},
	"/opt":          {Deny: true},
	"/ostree":       {Deny: true},
	"/root":         {Deny: true},
	"/srv":          {Deny: true},
	"/var/home":     {Deny: true},
	"/var/mnt":      {Deny: true},
	"/var/opt":      {Deny: true},
	"/var/roothome": {Deny: true},
	"/var/srv":      {Deny: true},
	"/var/usrlocal": {Deny: true},
})

MountpointPolicies for ostree

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL