unapproved caller - possible fix?

franton
Valued Contributor III

We have been having increasing issues with net boot lately. Mainly that it doesn't boot at all and spits the following error at us continually:

"unapproved caller. SecurityAgent may only be invoked by Apple software."

Turns out thanks to the blog post http://blog.magnusviri.com/what-is-var-folders.html that it's probably something to do with my homebrew net boot cleaner script. Amongst other things. I'm now testing the following code out to see if this alleviates the issue:

create[0]="/private/var/folders/04"
create[1]="/private/var/folders/zz"
create[2]="/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000"
create[3]="/private/var/folders/zz/zyxvpxvq6csfxvn_n000003000000r"
create[4]="/private/var/folders/zz/zyxvpxvq6csfxvn_n000003800000t"
create[5]="/private/var/folders/zz/zyxvpxvq6csfxvn_n000006w00001q"
create[6]="/private/var/folders/zz/zyxvpxvq6csfxvn_n0000084000021"
create[7]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000b000002r"
create[8]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000b400002s"
create[9]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000bh00002w"
create[10]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000c4000031"
create[11]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000s0000068"
create[12]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000s800006_"
create[13]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000sm00006d"
create[14]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000th00006m"
create[15]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000tm00006n"
create[16]="/private/var/folders/zz/zyxvpxvq6csfxvn_n00000vr00006y"
create[17]="/private/var/folders/zz/zyxvpxvq6csfxvn_ngzzzzzvzzzzzy"

tLen=${#create[@]}

# Loop around the array and create the folders. Set the appropriate permissions too.

for (( i=0; i<${tLen}; i++ ));
do
  echo "Now creating /Volumes/Netboot"${create[$i]}
  mkdir /Volumes/Netboot${create[$i]}
  chmod 755 /Volumes/Netboot${create[$i]}
done

I'll be testing this more seriously tomorrow. However it's worth an early post just to see if it helps anyone else with this highly annoying error.

1 REPLY 1

JPDyson
Valued Contributor

Just curious if this ever went anywhere.