Skip to content

Commit f913b27

Browse files
committed
FEAT: enable secure again (although not fully implemented yet)
related to: Oldes/Rebol-issues#1928
1 parent 3f9ac42 commit f913b27

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

src/mezz/base-funcs.r

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ default: func [
119119
unless all [value? word not none? get word] [set word :value] :value
120120
]
121121

122-
secure: func ['d] [boot-print "SECURE is disabled"]
122+
;secure: func ['d] [boot-print "SECURE is disabled"]
123123

src/mezz/boot-files.r

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ REBOL [
3434

3535
;-- lib: mid-level lib context:
3636
[
37+
%mezz-secure.r
3738
%mezz-types.r
3839
%mezz-func.r
3940
%mezz-debug.r

src/mezz/mezz-secure.r

+15-14
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,21 @@ secure: function/with [
2929
pol-obj: get-policies ; a deep copy
3030

3131
if policy = 'help [
32-
print "You can set policies for:"
33-
foreach [target pol] pol-obj [print [" " target]]
34-
print "These can be set to:"
35-
foreach [t d] [
36-
allow "no security"
37-
ask "ask user for permission"
38-
throw "throw as an error"
39-
quit "exit the program immediately"
40-
file "a file path"
41-
url "a file path"
42-
other "other value, such as integer"
43-
] [print [" " t "-" d]]
44-
print "Settings for read, write, and execute are also available."
45-
print "Type: help/doc secure for detailed documentation and examples."
32+
print " You can set policies for:^[[1;32m"
33+
foreach [target pol] pol-obj [print [" " target]]
34+
print " ^[[mThese can be set to:"
35+
print [
36+
"^[[1;32m allow ^[[m - no security^/"
37+
;"^[[1;32m ask "ask user for permission" ;-- yet not implemented!
38+
"^[[1;32m throw ^[[m - throw as an error^/"
39+
"^[[1;32m quit ^[[m - exit the program immediately^/"
40+
"^[[1;32m file ^[[m - a file path^/"
41+
"^[[1;32m url ^[[m - a file path^/"
42+
"^[[1;32m other ^[[m - other value, such as integer"
43+
]
44+
print " Settings for read, write, and execute are also available."
45+
print "^/ ^[[1;35mNOTE: ^[[1;31mSecure is not fully implemented!^/"
46+
;print "Type: help/doc secure for detailed documentation and examples."
4647
exit
4748
]
4849

0 commit comments

Comments
 (0)