Commit cc008d9d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Whitelisting.

parent 023fa076
...@@ -282,7 +282,7 @@ enum vlc_config_properties ...@@ -282,7 +282,7 @@ enum vlc_config_properties
VLC_CONFIG_OLDNAME, VLC_CONFIG_OLDNAME,
/* former option name (args=const char *) */ /* former option name (args=const char *) */
VLC_CONFIG_UNSAFE, VLC_CONFIG_SAFE,
/* tag as modifiable by untrusted input item "sources" (args=none) */ /* tag as modifiable by untrusted input item "sources" (args=none) */
}; };
...@@ -472,8 +472,10 @@ VLC_EXPORT( int, vlc_config_set, (module_config_t *, int, ...) ); ...@@ -472,8 +472,10 @@ VLC_EXPORT( int, vlc_config_set, (module_config_t *, int, ...) );
#define change_unsaveable() \ #define change_unsaveable() \
vlc_config_set (p_config, VLC_CONFIG_VOLATILE) vlc_config_set (p_config, VLC_CONFIG_VOLATILE)
#define change_unsafe() \ #define change_unsafe() (void)0 /* no-op */
vlc_config_set (p_config, VLC_CONFIG_UNSAFE)
#define change_safe() \
vlc_config_set (p_config, VLC_CONFIG_SAFE)
/**************************************************************************** /****************************************************************************
* config_chain_t: * config_chain_t:
......
...@@ -411,7 +411,7 @@ int vlc_config_set (module_config_t *restrict item, int id, ...) ...@@ -411,7 +411,7 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
break; break;
} }
case VLC_CONFIG_UNSAFE: case VLC_CONFIG_SAFE:
item->b_unsafe = VLC_TRUE; item->b_unsafe = VLC_TRUE;
ret = 0; ret = 0;
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment