wrap_setuid_third_party_application() {
if echo "1ドル" | grep -q "/" ; then
APP_NAME=1ドル
else
APP_NAME=`which 1ドル 2> /dev/null`
fi
NEW_NAME=${APP_NAME}.bin
if test -n "$APP_NAME" ; then
if ! test -f "$NEW_NAME" && ! test -d "$NEW_NAME"; then
mv "$APP_NAME" "$NEW_NAME"
cp -af /opt/${VENDOR}/mfp/bin/suwrap "$APP_NAME"
chown root:root "$APP_NAME"
chmod 4755 "$APP_NAME"
fi
fi
}
wrap_setuid_ooo_application() {
WRAPPING_BIN=`ls /usr/lib*/*/program/1ドル.bin /opt/*/program/1ドル.bin 2> /de
v/null | head -1`
if test -n "$WRAPPING_BIN" ; then
${2}wrap_setuid_third_party_application $WRAPPING_BIN
fi
}
Donc en gros il te copie les exécutables ooo dans /opt avec l'extension .bin et il te les remplace par un script setuid qui les appelles. Je n'ai jamais vu une telle horreur.
# Voir source du script d'installation
Posté par niol (site web personnel) . En réponse au message Ooo s'ouvre en root et non en user normal. Évalué à 10.
Dans le source du script d'instalaltion des drivers, on peut voir :
et :wrap_setuid_third_party_application() { if echo "1ドル" | grep -q "/" ; then APP_NAME=1ドル else APP_NAME=`which 1ドル 2> /dev/null` fi NEW_NAME=${APP_NAME}.bin if test -n "$APP_NAME" ; then if ! test -f "$NEW_NAME" && ! test -d "$NEW_NAME"; then mv "$APP_NAME" "$NEW_NAME" cp -af /opt/${VENDOR}/mfp/bin/suwrap "$APP_NAME" chown root:root "$APP_NAME" chmod 4755 "$APP_NAME" fi fi } wrap_setuid_ooo_application() { WRAPPING_BIN=`ls /usr/lib*/*/program/1ドル.bin /opt/*/program/1ドル.bin 2> /de v/null | head -1` if test -n "$WRAPPING_BIN" ; then ${2}wrap_setuid_third_party_application $WRAPPING_BIN fi }Donc en gros il te copie les exécutables ooo dans /opt avec l'extension .bin et il te les remplace par un script setuid qui les appelles. Je n'ai jamais vu une telle horreur.