PIM policyfetcher.log failed to connect to host "localhost"; error code: 10071 

Document ID : KB000106116
Last Modified Date : 12/07/2018
Show Technical Document Details
Issue:
Get the following in policyfetcher.log when starting the endpoint:

10時04分51秒@ 7月 12 2018 - trying to connect to host "localhost" 
10時04分51秒@ 7月 12 2018 - failed to connect to host "localhost"; error code: 10071 
10時04分51秒@ 7月 12 2018 - can not connect to localhost, will not resolve DEPLOYMENT and POLICY conflicts... 
Cause:
This is because the +policyfetcher user is not authorized for terminal.
Resolution:
Look for an entry like the following in seaudit (e.g. seaudit -a -sd today | grep policyfetcher)

12 Jul 2018 17:07:03 D LOGIN +policyfetcher 69 10 <HOST-OR-IP> policyfetcher 

This shows that the +policyfetcher user is being denied login (D LOGIN) to the terminal.

To fix this authorize the terminal, in selang:

authorize TERMINAL ('<HOST-OR-IP>') access(WRITE) uid('+policyfetcher')