[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: Default Permissions on /var/log/Xorg.n.log
From: Melvin Jones <melvinj () gmail ! com>
Date: 2014-05-30 17:12:14
Message-ID: CA+nk7oB4zOjWLmYX-sifRSt_j5GhouEP2o41Z=DcWQVo2AoAyg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Ok, thanks for the info. I'll find a workaround to change the perms at
startup. Since Xorg is running as root changing the perms on that file
shouldn't cause any problems from what I can tell. I've changed them
manually and it didn't cause any issues.
On May 30, 2014 1:04 PM, "Alan Coopersmith" <alan.coopersmith@oracle.com>
wrote:
> On 05/30/14 06:13 AM, Melvin Jones wrote:
>
>> The default permissions on the /var/log/Xorg.n.log file are 644. I need
>> all my
>> log files to have perms of 640 or more restrictive. Umask is set to 077
>> in all
>> init files and I've tried adding the umask to the /usr/sbin/gdm script
>> which
>> runs gdm-binary which starts up Xorg. However, I have not been able to
>> get the
>> permissions to change on the log or the logs in /var/log/gdm which are
>> opened by
>> the Xorg process.
>>
>> Is there any way to change the permissions on these log files?
>>
>
> Sorry, but looking in the code, the Xserver has a hardcoded umask(022)
> call right before creating the log file in hw/xfree86/common/xf86Init.c .
>
> --
> -Alan Coopersmith- alan.coopersmith@oracle.com
> Oracle Solaris Engineering - http://blogs.oracle.com/alanc
>
[Attachment #5 (text/html)]
<p dir="ltr">Ok, thanks for the info. I'll find a workaround to change the perms \
at startup. Since Xorg is running as root changing the perms on that file \
shouldn't cause any problems from what I can tell. I've changed them manually \
and it didn't cause any issues.</p>
<div class="gmail_quote">On May 30, 2014 1:04 PM, "Alan Coopersmith" <<a \
href="mailto:alan.coopersmith@oracle.com">alan.coopersmith@oracle.com</a>> \
wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> On 05/30/14 06:13 AM, Melvin Jones \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> The default permissions on the /var/log/Xorg.n.log file \
are 644. I need all my<br> log files to have perms of 640 or more restrictive. \
Umask is set to 077 in all<br> init files and I've tried adding the umask to the \
/usr/sbin/gdm script which<br> runs gdm-binary which starts up Xorg. However, I \
have not been able to get the<br> permissions to change on the log or the logs in \
/var/log/gdm which are opened by<br> the Xorg process.<br>
<br>
Is there any way to change the permissions on these log files?<br>
</blockquote>
<br>
Sorry, but looking in the code, the Xserver has a hardcoded umask(022)<br>
call right before creating the log file in hw/xfree86/common/xf86Init.c .<br>
<br>
-- <br>
-Alan Coopersmith- <a \
href="mailto:alan.coopersmith@oracle.com" \
target="_blank">alan.coopersmith@oracle.com</a><br>
Oracle Solaris Engineering - <a href="http://blogs.oracle.com/alanc" \
target="_blank">http://blogs.oracle.com/alanc</a><br> </blockquote></div>
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic