Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge oxygen-fonts, ACCESS DENIED: mkdir: /root/.config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
brendlefly62
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2009
Posts: 93

PostPosted: Sun Jun 12, 2016 4:53 pm    Post subject: emerge oxygen-fonts, ACCESS DENIED: mkdir: /root/.config Reply with quote

This system (4.4.8-hardened-r1 ... x86_64 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux) is running well with lxde while I've been trying to migrate from KDE to plasma5... ran into trouble merging plasma-meta. specifically, the package kde-plasma/oxygen-fonts-5.4.3 fails to compile.

Note: I am running a PaX kernel, but I am not using Grsecurity's RBAC:
Code:
# gradm -S
The RBAC system is currently disabled.

Code:
#  emerge -av plasma-meta  <-- tried with USE="-doc", --noreplace option, and even with FEATURES="-sandbox" ... always the same result:
[...]
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 14:34 EDT 11-Jun-2016-ML-D.
 Based on source from git with hash: 99da6faa1ea3b4f80ecd333f596ea7dab205325e
 * ACCESS DENIED:  mkdir:        /root/.config
 * ACCESS DENIED:  mkdir:        /root/.config[/b]
 * ACCESS DENIED:  mkdir:        /root/.config
Cannot find your hotkey definition file!
 * ACCESS DENIED:  mkdir:        /root/.config
Cannot find your hotkey definition file!
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 14:34 EDT 11-Jun-2016-ML-D.
 Based on source from git with hash: 99da6faa1ea3b4f80ecd333f596ea7dab205325e
 * ACCESS DENIED:  mkdir:        /root/.config
 * ACCESS DENIED:  mkdir:        /root/.config
Cannot find your hotkey definition file!
 * ACCESS DENIED:  mkdir:        /root/.config
make[2]: Leaving directory '/var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build'
 * ACCESS DENIED:  mkdir:        /root/.config
make[2]: Leaving directory '/var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build'
Built target bold
 * ACCESS DENIED:  mkdir:        /root/.config
make[2]: Leaving directory '/var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build'
Built target mono
Built target regular
make[1]: Leaving directory '/var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build'
/usr/bin/cmake -E cmake_progress_start /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/CMakeFiles 0
>>> Source compiled.
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-50521.log"
 *
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/Bold-700/src/Oxygen-Sans-Bold.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/Oxygen-Sans-Bold.ttf

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/mono-400/src/OxygenMono-Regular.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/OxygenMono-Regular.ttf

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/Bold-700/src/Oxygen-Sans-Bold.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/Oxygen-Sans-Bold.ttf

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/mono-400/src/OxygenMono-Regular.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/OxygenMono-Regular.ttf

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/Regular-400/src/Oxygen-Sans.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/Oxygen-Sans.ttf

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/Regular-400/src/Oxygen-Sans.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/Oxygen-Sans.ttf

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/Bold-700/src/Oxygen-Sans-Bold.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/Oxygen-Sans-Bold.ttf

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/mono-400/src/OxygenMono-Regular.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/OxygenMono-Regular.ttf

F: mkdir
S: deny
P: /root/.config
A: /root/.config
R: /root/.config
C: fontforge /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/generate-ttf.pe /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3/oxygen-fonts/Regular-400/src/Oxygen-Sans.sfd /var/tmp/portage/kde-plasma/oxygen-fonts-5.4.3/work/oxygen-fonts-5.4.3_build/Oxygen-Sans.ttf
 * --------------------------------------------------------------------------------

>>> Failed to emerge kde-plasma/oxygen-fonts-5.4.3, Log file:

>>>  '/var/log/portage/kde-plasma:oxygen-fonts-5.4.3:20160612-155845.log'


Code:
# emerge --info
Portage 2.3.0_rc1 (python 3.4.3-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.22-r4, 4.4.8-hardened-r1 x86_64)
=================================================================
System uname: Linux-4.4.8-hardened-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:     4006352 total,   2065800 free
KiB Swap:    2097148 total,   2044276 free
Timestamp of repository gentoo: Sun, 12 Jun 2016 15:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftpp.gtlib.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl acpi alsa amd64 apache2 apm avahi bash-completion berkdb bluetooth branding bzip2 caps cdr cgi cli cracklib crypt css cxx dbus dri dvd evdev ffmpeg gdbm git gnutls gstreamer iconv introspection joystick jpeg justify latex logrotate lxde mms mmx mmxext modules mp3 mp4 mpeg mplayer multilib mysql ncurses networkmanager nls nptl opengl pam pax_kernel pcre perl php pie png readline samba scanner seccomp session sockets sound sse sse2 ssl ssp tcpd threads tiff udev udisks unicode upnp upnp-av upower urandom usb v4l webkit wifi xattr xinerama xml xorg xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vmware nouveau vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I saw similar, but different ACCESS DENIED error references at https://bugs.gentoo.org/show_bug.cgi?id=458222 and https://bugs.gentoo.org/show_bug.cgi?id=443886

I also saw similar but different ACCESS DENED error at https://forums.gentoo.org/viewtopic-t-77351-start-0.html -- which was fixed by creating the missing directory. In my case the directory (/root/.config) is not missing -- it exists and contains subdirectories.
Code:
# la /root/.config
total 40
drwx------  9 root root 4096 Jun 11 10:11 .
drwx------ 11 root root 4096 Jun 11 23:45 ..
drwx------  2 root root 4096 Jun 11 10:12 gtk-2.0
drwx------  2 root root 4096 Jun  9 10:29 libfm
drwx------  3 root root 4096 Jun  9 10:29 lxpanel
drwx------  2 root root 4096 Jun  9 10:30 lxterminal
-rwx------  1 root root  143 Jun 11 10:11 mimeapps.list
drwx------  2 root root 4096 Jun  9 10:29 openbox
drwx------  3 root root 4096 Jun  9 10:29 pcmanfm
drwx------  2 root root 4096 Jun 11 23:45 pulse


Follow-up. I got oxygen-fonts to compile by bypassing security (I don't consider this a fix -- just maybe a clue as to what's going wrong).
Code:

FEATURES="-sandbox -userpriv -usersandbox" USE="-doc" emerge -av kde-plasma/plasma-meta --noreplace


Again, oxygen-fonts compiles ok as the first package up for the job above. plasma-meta is now installed...
Code:
[I] kde-plasma/plasma-meta
     Available versions:  (5) 5.5.5 ~5.6.4
       {bluetooth +display-manager grub gtk +handbook mediacenter networkmanager pam plymouth pulseaudio +sddm sdk +wallpapers}
     Installed versions:  5.5.5(5)(02:34:37 PM 06/12/2016)(bluetooth display-manager gtk mediacenter networkmanager pam pulseaudio sddm wallpapers -sdk)
     Homepage:            https://www.kde.org/workspaces/plasmadesktop/
     Description:         Merge this to pull in all Plasma 5 packages


Last edited by brendlefly62 on Sun Jun 12, 2016 6:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Jun 12, 2016 8:22 pm    Post subject: Reply with quote

brendlefly62 ...

I suspect another case (see here) in which the xdg "standard" shows how poorly thought out, and fragile, it is.

As a test you should try the following ...

Code:
# env -i emerge --oneshot kde-plasma/oxygen-fonts

... that should clear XDG_CONFIG_HOME and other xdg env ... and so not cause the access violation.

best ... khay
Back to top
View user's profile Send private message
brendlefly62
Tux's lil' helper
Tux's lil' helper


Joined: 19 Dec 2009
Posts: 93

PostPosted: Mon Jun 13, 2016 3:52 am    Post subject: Reply with quote

Thanks, Khay,
Quote:
As a test you should try the following ...


Code:
# env -i emerge --oneshot kde-plasma/oxygen-fonts   


... that should clear XDG_CONFIG_HOME and other xdg env ... and so not cause the access violation.

worked like a charm.

Where are such xdg env settings? -- I looked in /etc/env.d but did not find XDG_CONFIG_HOME

Code:
# for x in $(ls [0-9][0-9]*); do echo "----[ $x ]----";grep -i xdg $x; done
----[ ... ]----
----[ 30xdg-data-local ]----
XDG_DATA_DIRS="/usr/local/share"
COLON_SEPARATED="XDG_DATA_DIRS XDG_CONFIG_DIRS"
----[ ... ]----
----[ 90xdg-data-base ]----
XDG_DATA_DIRS="/usr/share"
XDG_CONFIG_DIRS="/etc/xdg"
----[ ... ]----


I also looked and found lots of stuff in /etc/xdg ... but didn't find said env setting...

can/should I do a per-package env setting for this (never tried that - possible?)
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Mon Jun 13, 2016 4:25 am    Post subject: Reply with quote

brendlefly62 wrote:
worked like a charm.

brendlefly62 ... ok, then its as I thought.

brendlefly62 wrote:
Where are such xdg env settings? -- I looked in /etc/env.d but did not find XDG_CONFIG_HOME

I have no idea, I have x11-misc/xdg-utils in profile/package.provided. I know that some apps will default to $HOME if there is nothing in the env but such crap shouldn't be carried over into portage regardless.

brendlefly62 wrote:
can/should I do a per-package env setting for this (never tried that - possible?)

You could do that, but the way I look at it is that it is a bug, or more accurately a virus ... if you say that however you'll likely get "gentoo follows upstream", so let them follow this stupid "standard" to its conclusion, environmental variables pointing to outside of the sandbox.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum