bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UID|EUID variables lose their ro properties


From: Chet Ramey
Subject: Re: UID|EUID variables lose their ro properties
Date: Fri, 3 Nov 2017 15:13:11 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 11/3/17 12:09 PM, mike b wrote:

> Bash Version: 4.4
> Patch Level: 12
> Release Status: release
> 
> Description:
>         Whenever UID|EUID are exported to the env of newly exec Bash
>         instance said variables lose their ro properties. Here's example:

Two reasons: you can't pass variable attributes through the environment;
and bash doesn't overwrite EUID or UID if a shell instance inherits them
via the environment. This is the general case; PPID is a rare exception.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]