Score:0

Unable to get Compliant state for OS policy assignment on GCP console

es flag

I created a RHEL7 VM and a OS Policy assignment with a simple config. Here is the YAML I'm using to validate. Below is the same shell script used in yaml for reference:

export num=$(stat --format '%a' /etc/crontab); if [[ "$num" -eq 644 ]]; then exit 100; else exit 101; fi

Since I get the output 644 when I SSH and manually try the command, I'm checking the same with this script and after validating, it should give compliant state as result but it's giving non-compliant.

PS: I was getting correct output i.e. compliant 3 days ago but nothing is working now. It seems google is making changes as the service still in Preview.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.