Zesstra | 5481d49 | 2021-04-08 20:07:06 +0200 | [diff] [blame] | 1 | SYNOPSIS |
| 2 | #include <configuration.h> |
| 3 | |
| 4 | void configure_lwobject(lwobject lwob, int what, mixed data) |
| 5 | |
| 6 | DESCRIPTION |
| 7 | Sets the option <what> to the value <data> on the object <lwob> |
| 8 | or the default for all lightweight objects if <lwob> is 0. |
| 9 | |
| 10 | If the first argument <lwob> is not this_object(), the privilege |
| 11 | violation ("configure_lwobject", this_object(), lwob, what, data) |
| 12 | occurs. |
| 13 | |
| 14 | As <what>, the following arguments are accepted: |
| 15 | |
| 16 | <what> == LC_EUID |
| 17 | Set effective uid to <data>. <data> must be a string or 0. |
| 18 | This call will always trigger a privilege violation check, |
| 19 | even if <lwob> is this_object(). |
| 20 | |
| 21 | If strict euid usage is enforced, lightweight objects with |
| 22 | euid 0 cannot load or clone other objects or do any file |
| 23 | operations. |
| 24 | |
| 25 | |
| 26 | The current values for these options can be queried using |
| 27 | lwobject_info(). |
| 28 | |
| 29 | HISTORY |
| 30 | Introduced in LDMud 3.6.5. |
| 31 | |
| 32 | SEE ALSO |
| 33 | lwobject_info(E), configure_object(E), configure_driver(E) |