diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-01-02 18:25:11 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-01-02 19:59:30 -0800 |
commit | d0111f1839801fa1dd8380595fac9de9aba72357 (patch) | |
tree | dd9577fecad4cfbe72197e8e22705651d5611fe6 /src/teliva.h | |
parent | a2081ee612c5e3afbc30361599efc010b5cf6554 (diff) | |
download | teliva-d0111f1839801fa1dd8380595fac9de9aba72357.tar.gz |
editable file permissions
Extremely cruddy implementation: - I'm still unclear on how to represent the advice function: - How to handle errors when loading user configuration? Currently I refuse to start. - Whole function? More errors to handle in header and so on. What if the function is renamed? - Just body? Needs more structured editing support. - Lots of duplication, particularly between the permissions in the menu and the permissions screen. I don't know how to show the hostname at the time of connect() or bind(), so networking is going to remain a boolean for now. It's also unclear what effective constraints we can impose on what gets discussed with a specific hostname. Everything outside the computer is out of one's control. One trick I learned is for consistently grabbing ASan logs on abort: It's always safe to redirect stderr with ncurses!
Diffstat (limited to 'src/teliva.h')
-rw-r--r-- | src/teliva.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/teliva.h b/src/teliva.h index 20d3217..212a04e 100644 --- a/src/teliva.h +++ b/src/teliva.h @@ -155,7 +155,7 @@ extern char* Previous_message; extern int handle_image(lua_State* L, char** argv, int n); extern void developer_mode(lua_State* L); extern void permissions_mode(lua_State* L); -extern int file_operations_permitted; +extern int file_operation_permitted(const char* filename, const char* mode); extern int net_operations_permitted; extern int load_editor_buffer_to_current_definition_in_image(lua_State* L); |