Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Create reversing rules from init.lua (and sb2's option -r was removed)
- reversing rules are now created by executing create_reverse_rules.lua from init.lua (it used to be called from the sb2 script itself) - Option -r, which disables path reversing, was removed.
- Loading branch information
1 parent
2caac69
commit 0c6abd4
Showing
7 changed files
with
129 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -240,3 +240,4 @@ if (debug_messages_enabled) then | |
string.format("%d rules", num_rules)) | ||
end | ||
|
||
argvmods = nil -- cleanup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- Copyright (c) 2012 Nokia Corporation. | ||
-- Author: Lauri T. Aarnio | ||
-- | ||
-- Licensed under LGPL version 2.1, see top level LICENSE file for details. | ||
|
||
-- | ||
-- Constants which can be used from the rule files: | ||
-- | ||
|
||
-- These must match the flag definitions in mapping.h: | ||
RULE_FLAGS_READONLY = 1 | ||
RULE_FLAGS_CALL_TRANSLATE_FOR_ALL = 2 | ||
RULE_FLAGS_FORCE_ORIG_PATH = 4 | ||
RULE_FLAGS_READONLY_FS_IF_NOT_ROOT = 8 | ||
RULE_FLAGS_READONLY_FS_ALWAYS = 16 | ||
|
||
-- Function class (bitmask) definitions for rule files: | ||
-- These must match SB2_INTERFACE_CLASS_* definitions in | ||
-- include/mapping.h | ||
FUNC_CLASS_OPEN = 0x1 | ||
FUNC_CLASS_STAT = 0x2 | ||
FUNC_CLASS_EXEC = 0x4 | ||
FUNC_CLASS_SOCKADDR = 0x8 | ||
FUNC_CLASS_FTSOPEN = 0x10 | ||
FUNC_CLASS_GLOB = 0x20 | ||
FUNC_CLASS_GETCWD = 0x40 | ||
FUNC_CLASS_REALPATH = 0x80 | ||
FUNC_CLASS_SET_TIMES = 0x100 | ||
FUNC_CLASS_L10N = 0x200 | ||
FUNC_CLASS_MKNOD = 0x400 | ||
FUNC_CLASS_RENAME = 0x800 | ||
|
||
-- "protection" attribute: | ||
readonly_fs_if_not_root = 1 | ||
readonly_fs_always = 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters