From: Arnaud Charlet Date: Thu, 22 Jul 2021 07:27:41 +0000 (-0400) Subject: [Ada] Minor doc improvement X-Git-Tag: basepoints/gcc-13~4504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4f6c18d9f739df6f1cf8aedbc2a0c4b3c0248fa;p=thirdparty%2Fgcc.git [Ada] Minor doc improvement gcc/ada/ * doc/gnat_ugn/platform_specific_information.rst: Improve doc on permission and containers. * gnat_ugn.texi: Regenerate. --- diff --git a/gcc/ada/doc/gnat_ugn/platform_specific_information.rst b/gcc/ada/doc/gnat_ugn/platform_specific_information.rst index 13993b86ad11..4f68d25498e9 100644 --- a/gcc/ada/doc/gnat_ugn/platform_specific_information.rst +++ b/gcc/ada/doc/gnat_ugn/platform_specific_information.rst @@ -217,7 +217,10 @@ this in a library package body in your application: (if geteuid = 0 then True else raise Program_Error with "must be root"); It gets the effective user id, and if it's not 0 (i.e. root), it raises -Program_Error. +Program_Error. Note that if you re running the code in a container, this may +not be sufficient, as you may have sufficient priviledge on the container, +but not on the host machine running the container, so check that you also +have sufficient priviledge for running the container image. .. index:: Linux .. index:: GNU/Linux diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi index 9919cad9b882..68a223c061cc 100644 --- a/gcc/ada/gnat_ugn.texi +++ b/gcc/ada/gnat_ugn.texi @@ -22645,7 +22645,10 @@ Ignore : constant Boolean := @end quotation It gets the effective user id, and if it’s not 0 (i.e. root), it raises -Program_Error. +Program_Error. Note that if you re running the code in a container, this may +not be sufficient, as you may have sufficient priviledge on the container, +but not on the host machine running the container, so check that you also +have sufficient priviledge for running the container image. @geindex Linux @@ -29228,8 +29231,8 @@ to permit their use in free software. @printindex ge -@anchor{cf}@w{ } @anchor{gnat_ugn/gnat_utility_programs switches-related-to-project-files}@w{ } +@anchor{cf}@w{ } @c %**end of body @bye