summaryrefslogtreecommitdiff
path: root/support/dktools/dk4fopt.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-10-12 03:04:00 +0000
committerNorbert Preining <norbert@preining.info>2020-10-12 03:04:00 +0000
commit0ce40abb18ec02ec6fd6bcc5f21612c88daa7578 (patch)
tree416289fe1448873fd8ca33051f50ad85bffa8aaa /support/dktools/dk4fopt.h
parentfdb18507cd80dc17f5a5256153d34668b4f4e61c (diff)
CTAN sync 202010120303
Diffstat (limited to 'support/dktools/dk4fopt.h')
-rw-r--r--support/dktools/dk4fopt.h87
1 files changed, 0 insertions, 87 deletions
diff --git a/support/dktools/dk4fopt.h b/support/dktools/dk4fopt.h
deleted file mode 100644
index 577b5e3de7..0000000000
--- a/support/dktools/dk4fopt.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
-Copyright 2020, Dirk Krause. All rights reserved.
-SPDX-License-Identifier: BSD-3-Clause
-*/
-
-#ifndef DK4FOPT_H_INCLUDED
-#define DK4FOPT_H_INCLUDED 1
-
-/** @file dk4fopt.h File open tests.
-*/
-
-#ifndef DK4CONF_H_INCLUDED
-#if DK4_BUILDING_DKTOOLS4
-#include "dk4conf.h"
-#else
-#include <dktools-4/dk4conf.h>
-#endif
-#endif
-
-#ifndef DK4NUMCO_H_INCLUDED
-#if DK4_BUILDING_DKTOOLS4
-#include "dk4numco.h"
-#else
-#include <dktools-4/dk4numco.h>
-#endif
-#endif
-
-/** Skip one ore more security checks when opening files.
-*/
-enum {
- /** Deny write operation if the path does
- not refer to a regular file.
- */
- DK4_FOPEN_SC_IS_REGULAR = 1,
-
- /** Deny write operation if any path
- component is a symbolic link.
- Ignored on Windows and on systems
- without symbolic links.
- */
- DK4_FOPEN_SC_WR_SYMLINK_IN_PATH = 2,
-
- /** Deny write operation if the path
- is a symbolic link (complete path).
- Ignored on Windows and on systems
- without symbolic links.
- */
- DK4_FOPEN_SC_WR_PATH_IS_SYMLINK = 4,
-
- /** Deny write operation if the path is
- a symbolic link and the link owner
- is not the link destination owner.
- Ignored on Windows, on systems without
- symbolic links and on systems where
- the st_uid member of the
- stat structure has no meaning.
- */
- DK4_FOPEN_SC_WR_SYMLINK_OWNER = 8,
-
-
- /** Apply security checks recommended
- for non-privileged users.
- */
- DK4_FOPEN_SC_USER = (
- DK4_FOPEN_SC_IS_REGULAR
- | DK4_FOPEN_SC_WR_SYMLINK_OWNER
- ),
-
- /** Apply security checks recommended
- for privileged users.
- */
- DK4_FOPEN_SC_PRIVILEGED = (
- DK4_FOPEN_SC_IS_REGULAR
- | DK4_FOPEN_SC_WR_SYMLINK_IN_PATH
- | DK4_FOPEN_SC_WR_PATH_IS_SYMLINK
- | DK4_FOPEN_SC_WR_SYMLINK_OWNER
- ),
-
- /** Apply all security checks
- (recommended if process is running
- with administrative privileges).
- */
- DK4_FOPEN_SC_ALL = INT_MAX
-};
-
-#endif
-