The professional body for solicitors in Scotland said lawyers accepted they would be searched on entering prisons to see their clients.

It comes after an advocate complained about being asked to take part in an oral inspection on arrival at Barlinnie Prison.

Defence counsel Victoria Young refused to take part in the intimate search and was denied access to her client.

The Faculty of Advocates has now appealed directly to Justice Secretary Kenny MacAskill over the issue.

However, the Law Society said solicitors were used to the security measures.

A spokesman said: "The solicitors really feel they have to bear the rules of the jail if they want to get into see their clients."

All visitors to prisons enter through a scanner with security guards asking for intimate searches at their discretion. Solicitor Advocate Ann Ritchie, vice-president of the Glasgow Bar Association, said: "I am not a big fan of being searched but I understand there are reasons for doing these searches.

"They are often done in front of the families of prisoners and it doesn't show us any particular level of respect."

Solicitor David Blair Wilson, 54, of Dunfermline, Fife, is due back in court for a preliminary hearing on December 6 after being accused of attempting to smuggle mobile phones and drugs, hidden in a folder, into Edinburgh's Saughton Prison. He denies the charges.