VirtualBox

Ignore:
Timestamp:
Apr 15, 2009 8:16:44 AM (16 years ago)
Author:
vboxsync
Message:

XPCOM: an additional hint to check the permissions of the /tmp directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/daemon/src/ipcdUnix.cpp

    r16382 r18899  
    131131    if (st.st_uid != getuid() && st.st_uid != geteuid())
    132132    {
    133         printf("Wrong owner (%d) of '%s'.\n", st.st_uid, baseDir);
     133        printf("Wrong owner (%d) of '%s'", st.st_uid, baseDir);
     134        if (   !stat("/tmp", &st)
     135            && (st.st_mode & 07777) != 01777)
     136            printf(" -- check /tmp permissions (%o should be 1777)\n",
     137                    st.st_mode & 07777);
     138        printf(".\n");
    134139        return ELockFileOwner;
    135140    }
     
    137142    if (st.st_mode != (S_IRUSR | S_IWUSR | S_IXUSR | S_IFDIR))
    138143    {
    139         printf("Wrong mode (%o) of '%s'.\n", st.st_mode, baseDir);
     144        printf("Wrong mode (%o) of '%s'", st.st_mode, baseDir);
     145        if (   !stat("/tmp", &st)
     146            && (st.st_mode & 07777) != 01777)
     147            printf(" -- check /tmp permissions (%o should be 1777)\n",
     148                    st.st_mode & 07777);
     149        printf(".\n");
    140150        return ELockFileOwner;
    141151    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette