public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Siddhesh Poyarekar <siddhesh@gotplt.org>
To: DJ Delorie <dj@redhat.com>
Cc: adhemerval.zanella@linaro.org, libc-alpha@sourceware.org
Subject: Re: RFC: system-wide default tunables
Date: Wed, 18 Oct 2023 10:20:29 -0400	[thread overview]
Message-ID: <44db5ffe-3612-86fb-215b-11cc873752b3@gotplt.org> (raw)
In-Reply-To: <xno7gxuq6o.fsf@greed.delorie.com>

On 2023-10-17 13:14, DJ Delorie wrote:
> Siddhesh Poyarekar <siddhesh@gotplt.org> writes:
>> Actually I wasn't thinking of any conf file related constraint markup, I
>> was thinking of TUNABLE_CALLBACKs encoding constraints in whichever way
>> they deem fit.  e.g. for ibt it could be:
>>
>> void
>> TUNABLE_CALLBACK (set_x86_ibt) (tunable_val_t *valp)
>> {
>>     if (!strcmp (valp->system_default, "always_on"))
>>       return;
>>
>>     /* Otherwise read the value.  */
>> }
> 
> So the tunable definition *itself* decides whether the sysadmin wants to
> override a user?

Sort of; the tunable definition decides how much control a systemwide 
tunable (consequently the sysadmin) has, on the capability of a user to 
override it.

So for security tunables it could be a latch value (like above) that a 
user may not be able to override.  For numeric value tunables it could 
be a range that a user is not allowed to surpass.  For string tunables, 
it could be a list of values the user is allowed to set; the first valid 
value in the list could be the default.

Thanks,
Sid

  reply	other threads:[~2023-10-18 14:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-04 20:55 DJ Delorie
2023-10-06 14:44 ` Adhemerval Zanella Netto
2023-10-06 17:12   ` Adhemerval Zanella Netto
2023-10-06 18:29   ` DJ Delorie
2023-10-06 19:14     ` Adhemerval Zanella Netto
2023-10-06 20:25       ` DJ Delorie
2023-10-17 14:10         ` Adhemerval Zanella Netto
2023-10-17 14:17           ` Siddhesh Poyarekar
2023-10-17 14:37             ` Siddhesh Poyarekar
2023-10-17 15:43             ` DJ Delorie
2023-10-17 15:58               ` Siddhesh Poyarekar
2023-10-17 16:45             ` DJ Delorie
2023-10-17 16:55               ` Siddhesh Poyarekar
2023-10-17 17:14                 ` DJ Delorie
2023-10-18 14:20                   ` Siddhesh Poyarekar [this message]
2023-10-17 17:40           ` Zack Weinberg
2023-10-17 17:47             ` DJ Delorie
2023-10-17 18:17               ` Zack Weinberg
2023-10-17 18:21                 ` DJ Delorie
2023-10-06 22:04       ` DJ Delorie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44db5ffe-3612-86fb-215b-11cc873752b3@gotplt.org \
    --to=siddhesh@gotplt.org \
    --cc=adhemerval.zanella@linaro.org \
    --cc=dj@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).